diff options
Diffstat (limited to 'src/lib/libnetlink.c')
-rw-r--r-- | src/lib/libnetlink.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/lib/libnetlink.c b/src/lib/libnetlink.c index 417ef2c5f..d2975bd57 100644 --- a/src/lib/libnetlink.c +++ b/src/lib/libnetlink.c | |||
@@ -1,16 +1,16 @@ | |||
1 | /* file extracted from iproute2 software package | 1 | /* file extracted from iproute2 software package |
2 | * | 2 | * |
3 | * Original source code: | 3 | * Original source code: |
4 | * | 4 | * |
5 | * Information: | 5 | * Information: |
6 | * http://www.linuxfoundation.org/collaborate/workgroups/networking/iproute2 | 6 | * http://www.linuxfoundation.org/collaborate/workgroups/networking/iproute2 |
7 | * | 7 | * |
8 | * Download: | 8 | * Download: |
9 | * http://www.kernel.org/pub/linux/utils/net/iproute2/ | 9 | * http://www.kernel.org/pub/linux/utils/net/iproute2/ |
10 | * | 10 | * |
11 | * Repository: | 11 | * Repository: |
12 | * git://git.kernel.org/pub/scm/linux/kernel/git/shemminger/iproute2.git | 12 | * git://git.kernel.org/pub/scm/linux/kernel/git/shemminger/iproute2.git |
13 | * | 13 | * |
14 | * License: GPL v2 | 14 | * License: GPL v2 |
15 | * | 15 | * |
16 | * Original copyright header | 16 | * Original copyright header |
@@ -166,7 +166,7 @@ int rtnl_send_check(struct rtnl_handle *rth, const void *buf, int len) | |||
166 | struct nlmsgerr *err = (struct nlmsgerr*)NLMSG_DATA(h); | 166 | struct nlmsgerr *err = (struct nlmsgerr*)NLMSG_DATA(h); |
167 | if (h->nlmsg_len < NLMSG_LENGTH(sizeof(struct nlmsgerr))) | 167 | if (h->nlmsg_len < NLMSG_LENGTH(sizeof(struct nlmsgerr))) |
168 | fprintf(stderr, "ERROR truncated\n"); | 168 | fprintf(stderr, "ERROR truncated\n"); |
169 | else | 169 | else |
170 | errno = -err->error; | 170 | errno = -err->error; |
171 | return -1; | 171 | return -1; |
172 | } | 172 | } |
@@ -600,7 +600,7 @@ if (type == IFLA_LINK) { | |||
600 | for (i = 0; i < alen; i++) | 600 | for (i = 0; i < alen; i++) |
601 | printf("%02x, ", *((unsigned char *)data + i)); | 601 | printf("%02x, ", *((unsigned char *)data + i)); |
602 | printf("\n"); | 602 | printf("\n"); |
603 | } | 603 | } |
604 | else if (type == IFLA_IFNAME) { | 604 | else if (type == IFLA_IFNAME) { |
605 | printf("IFLA_IFNAME\n"); | 605 | printf("IFLA_IFNAME\n"); |
606 | printf("\tdata - #%s#\n", data); | 606 | printf("\tdata - #%s#\n", data); |
@@ -615,8 +615,8 @@ else if (type == IFLA_ADDRESS) { | |||
615 | printf("\n"); | 615 | printf("\n"); |
616 | } | 616 | } |
617 | else if (type == IFLA_BROADCAST) printf("IFLA_BROADCAST or IFLA_INFO_DATA\n"); | 617 | else if (type == IFLA_BROADCAST) printf("IFLA_BROADCAST or IFLA_INFO_DATA\n"); |
618 | 618 | ||
619 | printf("\tdata length: %d\n", alen); | 619 | printf("\tdata length: %d\n", alen); |
620 | #endif | 620 | #endif |
621 | 621 | ||
622 | int len = RTA_LENGTH(alen); | 622 | int len = RTA_LENGTH(alen); |