diff options
author | Eric Andersen <andersen@codepoet.org> | 2004-03-15 08:29:22 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2004-03-15 08:29:22 +0000 |
commit | c7bda1ce659294d6e22c06e087f6f265983c7578 (patch) | |
tree | 4c6d2217f4d8306c59cf1096f8664e1cfd167213 /networking/libiproute | |
parent | 8854004b41065b3d081af7f3df13a100b0c8bfbe (diff) | |
download | busybox-w32-c7bda1ce659294d6e22c06e087f6f265983c7578.tar.gz busybox-w32-c7bda1ce659294d6e22c06e087f6f265983c7578.tar.bz2 busybox-w32-c7bda1ce659294d6e22c06e087f6f265983c7578.zip |
Remove trailing whitespace. Update copyright to include 2004.
Diffstat (limited to 'networking/libiproute')
-rw-r--r-- | networking/libiproute/Makefile | 2 | ||||
-rw-r--r-- | networking/libiproute/Makefile.in | 2 | ||||
-rw-r--r-- | networking/libiproute/ip_parse_common_args.c | 2 | ||||
-rw-r--r-- | networking/libiproute/ipaddress.c | 8 | ||||
-rw-r--r-- | networking/libiproute/iplink.c | 30 | ||||
-rw-r--r-- | networking/libiproute/iproute.c | 8 | ||||
-rw-r--r-- | networking/libiproute/iptunnel.c | 6 | ||||
-rw-r--r-- | networking/libiproute/libnetlink.c | 4 | ||||
-rw-r--r-- | networking/libiproute/linux/pkt_sched.h | 20 | ||||
-rw-r--r-- | networking/libiproute/ll_proto.c | 72 | ||||
-rw-r--r-- | networking/libiproute/utils.h | 2 |
11 files changed, 78 insertions, 78 deletions
diff --git a/networking/libiproute/Makefile b/networking/libiproute/Makefile index c1f18be7b..0dc7191d3 100644 --- a/networking/libiproute/Makefile +++ b/networking/libiproute/Makefile | |||
@@ -1,6 +1,6 @@ | |||
1 | # Makefile for busybox | 1 | # Makefile for busybox |
2 | # | 2 | # |
3 | # Copyright (C) 1999-2003 by Erik Andersen <andersen@codepoet.org> | 3 | # Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org> |
4 | # | 4 | # |
5 | # This program is free software; you can redistribute it and/or modify | 5 | # This program is free software; you can redistribute it and/or modify |
6 | # it under the terms of the GNU General Public License as published by | 6 | # it under the terms of the GNU General Public License as published by |
diff --git a/networking/libiproute/Makefile.in b/networking/libiproute/Makefile.in index f39eeb3ee..d6f95048c 100644 --- a/networking/libiproute/Makefile.in +++ b/networking/libiproute/Makefile.in | |||
@@ -1,6 +1,6 @@ | |||
1 | # Makefile for busybox | 1 | # Makefile for busybox |
2 | # | 2 | # |
3 | # Copyright (C) 1999-2003 by Erik Andersen <andersen@codepoet.org> | 3 | # Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org> |
4 | # | 4 | # |
5 | # This program is free software; you can redistribute it and/or modify | 5 | # This program is free software; you can redistribute it and/or modify |
6 | # it under the terms of the GNU General Public License as published by | 6 | # it under the terms of the GNU General Public License as published by |
diff --git a/networking/libiproute/ip_parse_common_args.c b/networking/libiproute/ip_parse_common_args.c index 1f3d73933..a76df48e0 100644 --- a/networking/libiproute/ip_parse_common_args.c +++ b/networking/libiproute/ip_parse_common_args.c | |||
@@ -47,7 +47,7 @@ void ip_parse_common_args(int *argcp, char ***argvp) | |||
47 | if (matches(opt, "-family") == 0) { | 47 | if (matches(opt, "-family") == 0) { |
48 | argc--; | 48 | argc--; |
49 | argv++; | 49 | argv++; |
50 | if (! argv[1]) | 50 | if (! argv[1]) |
51 | bb_show_usage(); | 51 | bb_show_usage(); |
52 | if (strcmp(argv[1], "inet") == 0) | 52 | if (strcmp(argv[1], "inet") == 0) |
53 | preferred_family = AF_INET; | 53 | preferred_family = AF_INET; |
diff --git a/networking/libiproute/ipaddress.c b/networking/libiproute/ipaddress.c index 44e871ee5..7e0c75785 100644 --- a/networking/libiproute/ipaddress.c +++ b/networking/libiproute/ipaddress.c | |||
@@ -91,7 +91,7 @@ static void print_queuelen(char *name) | |||
91 | 91 | ||
92 | memset(&ifr, 0, sizeof(ifr)); | 92 | memset(&ifr, 0, sizeof(ifr)); |
93 | strcpy(ifr.ifr_name, name); | 93 | strcpy(ifr.ifr_name, name); |
94 | if (ioctl(s, SIOCGIFTXQLEN, &ifr) < 0) { | 94 | if (ioctl(s, SIOCGIFTXQLEN, &ifr) < 0) { |
95 | perror("SIOCGIFXQLEN"); | 95 | perror("SIOCGIFXQLEN"); |
96 | close(s); | 96 | close(s); |
97 | return; | 97 | return; |
@@ -166,7 +166,7 @@ static int print_linkinfo(struct sockaddr_nl *who, struct nlmsghdr *n, void *arg | |||
166 | #endif | 166 | #endif |
167 | if (filter.showqueue) | 167 | if (filter.showqueue) |
168 | print_queuelen((char*)RTA_DATA(tb[IFLA_IFNAME])); | 168 | print_queuelen((char*)RTA_DATA(tb[IFLA_IFNAME])); |
169 | 169 | ||
170 | if (!filter.family || filter.family == AF_PACKET) { | 170 | if (!filter.family || filter.family == AF_PACKET) { |
171 | SPRINT_BUF(b1); | 171 | SPRINT_BUF(b1); |
172 | fprintf(fp, "%s", _SL_); | 172 | fprintf(fp, "%s", _SL_); |
@@ -378,7 +378,7 @@ static int print_selected_addrinfo(int ifindex, struct nlmsg_list *ainfo, FILE * | |||
378 | if (n->nlmsg_len < NLMSG_LENGTH(sizeof(ifa))) | 378 | if (n->nlmsg_len < NLMSG_LENGTH(sizeof(ifa))) |
379 | return -1; | 379 | return -1; |
380 | 380 | ||
381 | if (ifa->ifa_index != ifindex || | 381 | if (ifa->ifa_index != ifindex || |
382 | (filter.family && filter.family != ifa->ifa_family)) | 382 | (filter.family && filter.family != ifa->ifa_family)) |
383 | continue; | 383 | continue; |
384 | 384 | ||
@@ -564,7 +564,7 @@ extern int ipaddr_list_or_flush(int argc, char **argv, int flush) | |||
564 | struct nlmsghdr *n = &a->h; | 564 | struct nlmsghdr *n = &a->h; |
565 | struct ifaddrmsg *ifa = NLMSG_DATA(n); | 565 | struct ifaddrmsg *ifa = NLMSG_DATA(n); |
566 | 566 | ||
567 | if (ifa->ifa_index != ifi->ifi_index || | 567 | if (ifa->ifa_index != ifi->ifi_index || |
568 | (filter.family && filter.family != ifa->ifa_family)) | 568 | (filter.family && filter.family != ifa->ifa_family)) |
569 | continue; | 569 | continue; |
570 | if ((filter.scope^ifa->ifa_scope)&filter.scopemask) | 570 | if ((filter.scope^ifa->ifa_scope)&filter.scopemask) |
diff --git a/networking/libiproute/iplink.c b/networking/libiproute/iplink.c index daab6938d..44b546d59 100644 --- a/networking/libiproute/iplink.c +++ b/networking/libiproute/iplink.c | |||
@@ -128,8 +128,8 @@ static int set_qlen(char *dev, int qlen) | |||
128 | return -1; | 128 | return -1; |
129 | 129 | ||
130 | memset(&ifr, 0, sizeof(ifr)); | 130 | memset(&ifr, 0, sizeof(ifr)); |
131 | strcpy(ifr.ifr_name, dev); | 131 | strcpy(ifr.ifr_name, dev); |
132 | ifr.ifr_qlen = qlen; | 132 | ifr.ifr_qlen = qlen; |
133 | if (ioctl(s, SIOCSIFTXQLEN, &ifr) < 0) { | 133 | if (ioctl(s, SIOCSIFTXQLEN, &ifr) < 0) { |
134 | perror("SIOCSIFXQLEN"); | 134 | perror("SIOCSIFXQLEN"); |
135 | close(s); | 135 | close(s); |
@@ -137,7 +137,7 @@ static int set_qlen(char *dev, int qlen) | |||
137 | } | 137 | } |
138 | close(s); | 138 | close(s); |
139 | 139 | ||
140 | return 0; | 140 | return 0; |
141 | } | 141 | } |
142 | 142 | ||
143 | static int set_mtu(char *dev, int mtu) | 143 | static int set_mtu(char *dev, int mtu) |
@@ -150,8 +150,8 @@ static int set_mtu(char *dev, int mtu) | |||
150 | return -1; | 150 | return -1; |
151 | 151 | ||
152 | memset(&ifr, 0, sizeof(ifr)); | 152 | memset(&ifr, 0, sizeof(ifr)); |
153 | strcpy(ifr.ifr_name, dev); | 153 | strcpy(ifr.ifr_name, dev); |
154 | ifr.ifr_mtu = mtu; | 154 | ifr.ifr_mtu = mtu; |
155 | if (ioctl(s, SIOCSIFMTU, &ifr) < 0) { | 155 | if (ioctl(s, SIOCSIFMTU, &ifr) < 0) { |
156 | perror("SIOCSIFMTU"); | 156 | perror("SIOCSIFMTU"); |
157 | close(s); | 157 | close(s); |
@@ -159,7 +159,7 @@ static int set_mtu(char *dev, int mtu) | |||
159 | } | 159 | } |
160 | close(s); | 160 | close(s); |
161 | 161 | ||
162 | return 0; | 162 | return 0; |
163 | } | 163 | } |
164 | 164 | ||
165 | static int get_address(char *dev, int *htype) | 165 | static int get_address(char *dev, int *htype) |
@@ -170,7 +170,7 @@ static int get_address(char *dev, int *htype) | |||
170 | int s; | 170 | int s; |
171 | 171 | ||
172 | s = socket(PF_PACKET, SOCK_DGRAM, 0); | 172 | s = socket(PF_PACKET, SOCK_DGRAM, 0); |
173 | if (s < 0) { | 173 | if (s < 0) { |
174 | perror("socket(PF_PACKET)"); | 174 | perror("socket(PF_PACKET)"); |
175 | return -1; | 175 | return -1; |
176 | } | 176 | } |
@@ -218,7 +218,7 @@ static int parse_address(char *dev, int hatype, int halen, char *lla, struct ifr | |||
218 | bb_error_msg("Wrong address (%s) length: expected %d bytes", lla, halen); | 218 | bb_error_msg("Wrong address (%s) length: expected %d bytes", lla, halen); |
219 | return -1; | 219 | return -1; |
220 | } | 220 | } |
221 | return 0; | 221 | return 0; |
222 | } | 222 | } |
223 | 223 | ||
224 | static int set_address(struct ifreq *ifr, int brd) | 224 | static int set_address(struct ifreq *ifr, int brd) |
@@ -234,7 +234,7 @@ static int set_address(struct ifreq *ifr, int brd) | |||
234 | return -1; | 234 | return -1; |
235 | } | 235 | } |
236 | close(s); | 236 | close(s); |
237 | return 0; | 237 | return 0; |
238 | } | 238 | } |
239 | 239 | ||
240 | 240 | ||
@@ -311,7 +311,7 @@ static int do_set(int argc, char **argv) | |||
311 | } | 311 | } |
312 | if (newbrd) { | 312 | if (newbrd) { |
313 | if (parse_address(dev, htype, halen, newbrd, &ifr1) < 0) | 313 | if (parse_address(dev, htype, halen, newbrd, &ifr1) < 0) |
314 | return -1; | 314 | return -1; |
315 | } | 315 | } |
316 | } | 316 | } |
317 | 317 | ||
@@ -320,18 +320,18 @@ static int do_set(int argc, char **argv) | |||
320 | return -1; | 320 | return -1; |
321 | dev = newname; | 321 | dev = newname; |
322 | } | 322 | } |
323 | if (qlen != -1) { | 323 | if (qlen != -1) { |
324 | if (set_qlen(dev, qlen) < 0) | 324 | if (set_qlen(dev, qlen) < 0) |
325 | return -1; | 325 | return -1; |
326 | } | 326 | } |
327 | if (mtu != -1) { | 327 | if (mtu != -1) { |
328 | if (set_mtu(dev, mtu) < 0) | 328 | if (set_mtu(dev, mtu) < 0) |
329 | return -1; | 329 | return -1; |
330 | } | 330 | } |
331 | if (newaddr || newbrd) { | 331 | if (newaddr || newbrd) { |
332 | if (newbrd) { | 332 | if (newbrd) { |
333 | if (set_address(&ifr1, 1) < 0) | 333 | if (set_address(&ifr1, 1) < 0) |
334 | return -1; | 334 | return -1; |
335 | } | 335 | } |
336 | if (newaddr) { | 336 | if (newaddr) { |
337 | if (set_address(&ifr0, 0) < 0) | 337 | if (set_address(&ifr0, 0) < 0) |
diff --git a/networking/libiproute/iproute.c b/networking/libiproute/iproute.c index 0fdf7987e..7adbfcd61 100644 --- a/networking/libiproute/iproute.c +++ b/networking/libiproute/iproute.c | |||
@@ -76,7 +76,7 @@ static int print_route(struct sockaddr_nl *who, struct nlmsghdr *n, void *arg) | |||
76 | inet_prefix src; | 76 | inet_prefix src; |
77 | int host_len = -1; | 77 | int host_len = -1; |
78 | SPRINT_BUF(b1); | 78 | SPRINT_BUF(b1); |
79 | 79 | ||
80 | 80 | ||
81 | if (n->nlmsg_type != RTM_NEWROUTE && n->nlmsg_type != RTM_DELROUTE) { | 81 | if (n->nlmsg_type != RTM_NEWROUTE && n->nlmsg_type != RTM_DELROUTE) { |
82 | fprintf(stderr, "Not a route: %08x %08x %08x\n", | 82 | fprintf(stderr, "Not a route: %08x %08x %08x\n", |
@@ -228,7 +228,7 @@ static int print_route(struct sockaddr_nl *who, struct nlmsghdr *n, void *arg) | |||
228 | fprintf(fp, "from 0/%u ", r->rtm_src_len); | 228 | fprintf(fp, "from 0/%u ", r->rtm_src_len); |
229 | } | 229 | } |
230 | if (tb[RTA_GATEWAY] && filter.rvia.bitlen != host_len) { | 230 | if (tb[RTA_GATEWAY] && filter.rvia.bitlen != host_len) { |
231 | fprintf(fp, "via %s ", | 231 | fprintf(fp, "via %s ", |
232 | format_host(r->rtm_family, | 232 | format_host(r->rtm_family, |
233 | RTA_PAYLOAD(tb[RTA_GATEWAY]), | 233 | RTA_PAYLOAD(tb[RTA_GATEWAY]), |
234 | RTA_DATA(tb[RTA_GATEWAY]), | 234 | RTA_DATA(tb[RTA_GATEWAY]), |
@@ -242,7 +242,7 @@ static int print_route(struct sockaddr_nl *who, struct nlmsghdr *n, void *arg) | |||
242 | /* Do not use format_host(). It is our local addr | 242 | /* Do not use format_host(). It is our local addr |
243 | and symbolic name will not be useful. | 243 | and symbolic name will not be useful. |
244 | */ | 244 | */ |
245 | fprintf(fp, " src %s ", | 245 | fprintf(fp, " src %s ", |
246 | rt_addr_n2a(r->rtm_family, | 246 | rt_addr_n2a(r->rtm_family, |
247 | RTA_PAYLOAD(tb[RTA_PREFSRC]), | 247 | RTA_PAYLOAD(tb[RTA_PREFSRC]), |
248 | RTA_DATA(tb[RTA_PREFSRC]), | 248 | RTA_DATA(tb[RTA_PREFSRC]), |
@@ -665,7 +665,7 @@ static int iproute_get(int argc, char **argv) | |||
665 | req.r.rtm_src_len = 0; | 665 | req.r.rtm_src_len = 0; |
666 | req.r.rtm_dst_len = 0; | 666 | req.r.rtm_dst_len = 0; |
667 | req.r.rtm_tos = 0; | 667 | req.r.rtm_tos = 0; |
668 | 668 | ||
669 | while (argc > 0) { | 669 | while (argc > 0) { |
670 | switch (compare_string_array(options, *argv)) { | 670 | switch (compare_string_array(options, *argv)) { |
671 | case 0: /* from */ | 671 | case 0: /* from */ |
diff --git a/networking/libiproute/iptunnel.c b/networking/libiproute/iptunnel.c index eae5bb091..3f5d05ae9 100644 --- a/networking/libiproute/iptunnel.c +++ b/networking/libiproute/iptunnel.c | |||
@@ -354,7 +354,7 @@ static int do_add(int cmd, int argc, char **argv) | |||
354 | return do_add_ioctl(cmd, "gre0", &p); | 354 | return do_add_ioctl(cmd, "gre0", &p); |
355 | case IPPROTO_IPV6: | 355 | case IPPROTO_IPV6: |
356 | return do_add_ioctl(cmd, "sit0", &p); | 356 | return do_add_ioctl(cmd, "sit0", &p); |
357 | default: | 357 | default: |
358 | bb_error_msg("cannot determine tunnel mode (ipip, gre or sit)"); | 358 | bb_error_msg("cannot determine tunnel mode (ipip, gre or sit)"); |
359 | return -1; | 359 | return -1; |
360 | } | 360 | } |
@@ -375,7 +375,7 @@ int do_del(int argc, char **argv) | |||
375 | return do_del_ioctl("gre0", &p); | 375 | return do_del_ioctl("gre0", &p); |
376 | case IPPROTO_IPV6: | 376 | case IPPROTO_IPV6: |
377 | return do_del_ioctl("sit0", &p); | 377 | return do_del_ioctl("sit0", &p); |
378 | default: | 378 | default: |
379 | return do_del_ioctl(p.name, &p); | 379 | return do_del_ioctl(p.name, &p); |
380 | } | 380 | } |
381 | return -1; | 381 | return -1; |
@@ -506,7 +506,7 @@ static int do_show(int argc, char **argv) | |||
506 | return -1; | 506 | return -1; |
507 | 507 | ||
508 | switch (p.iph.protocol) { | 508 | switch (p.iph.protocol) { |
509 | case IPPROTO_IPIP: | 509 | case IPPROTO_IPIP: |
510 | err = do_get_ioctl(p.name[0] ? p.name : "tunl0", &p); | 510 | err = do_get_ioctl(p.name[0] ? p.name : "tunl0", &p); |
511 | break; | 511 | break; |
512 | case IPPROTO_GRE: | 512 | case IPPROTO_GRE: |
diff --git a/networking/libiproute/libnetlink.c b/networking/libiproute/libnetlink.c index 9390e56fb..861daef86 100644 --- a/networking/libiproute/libnetlink.c +++ b/networking/libiproute/libnetlink.c | |||
@@ -317,7 +317,7 @@ int rtnl_talk(struct rtnl_handle *rtnl, struct nlmsghdr *n, pid_t peer, | |||
317 | } | 317 | } |
318 | } | 318 | } |
319 | 319 | ||
320 | int rtnl_listen(struct rtnl_handle *rtnl, | 320 | int rtnl_listen(struct rtnl_handle *rtnl, |
321 | int (*handler)(struct sockaddr_nl *,struct nlmsghdr *n, void *), | 321 | int (*handler)(struct sockaddr_nl *,struct nlmsghdr *n, void *), |
322 | void *jarg) | 322 | void *jarg) |
323 | { | 323 | { |
@@ -389,7 +389,7 @@ int rtnl_listen(struct rtnl_handle *rtnl, | |||
389 | } | 389 | } |
390 | } | 390 | } |
391 | 391 | ||
392 | int rtnl_from_file(FILE *rtnl, | 392 | int rtnl_from_file(FILE *rtnl, |
393 | int (*handler)(struct sockaddr_nl *,struct nlmsghdr *n, void *), | 393 | int (*handler)(struct sockaddr_nl *,struct nlmsghdr *n, void *), |
394 | void *jarg) | 394 | void *jarg) |
395 | { | 395 | { |
diff --git a/networking/libiproute/linux/pkt_sched.h b/networking/libiproute/linux/pkt_sched.h index e174588f5..70cbabc26 100644 --- a/networking/libiproute/linux/pkt_sched.h +++ b/networking/libiproute/linux/pkt_sched.h | |||
@@ -221,19 +221,19 @@ enum | |||
221 | #define TCA_SET_OFF TCA_GRED_PARMS | 221 | #define TCA_SET_OFF TCA_GRED_PARMS |
222 | struct tc_gred_qopt | 222 | struct tc_gred_qopt |
223 | { | 223 | { |
224 | __u32 limit; /* HARD maximal queue length (bytes) | 224 | __u32 limit; /* HARD maximal queue length (bytes) |
225 | */ | 225 | */ |
226 | __u32 qth_min; /* Min average length threshold (bytes) | 226 | __u32 qth_min; /* Min average length threshold (bytes) |
227 | */ | 227 | */ |
228 | __u32 qth_max; /* Max average length threshold (bytes) | 228 | __u32 qth_max; /* Max average length threshold (bytes) |
229 | */ | 229 | */ |
230 | __u32 DP; /* upto 2^32 DPs */ | 230 | __u32 DP; /* upto 2^32 DPs */ |
231 | __u32 backlog; | 231 | __u32 backlog; |
232 | __u32 qave; | 232 | __u32 qave; |
233 | __u32 forced; | 233 | __u32 forced; |
234 | __u32 early; | 234 | __u32 early; |
235 | __u32 other; | 235 | __u32 other; |
236 | __u32 pdrop; | 236 | __u32 pdrop; |
237 | 237 | ||
238 | unsigned char Wlog; /* log(W) */ | 238 | unsigned char Wlog; /* log(W) */ |
239 | unsigned char Plog; /* log(P_max/(qth_max-qth_min)) */ | 239 | unsigned char Plog; /* log(P_max/(qth_max-qth_min)) */ |
@@ -294,7 +294,7 @@ struct tc_htb_xstats | |||
294 | __u32 lends; | 294 | __u32 lends; |
295 | __u32 borrows; | 295 | __u32 borrows; |
296 | __u32 giants; /* too big packets (rate will not be accurate) */ | 296 | __u32 giants; /* too big packets (rate will not be accurate) */ |
297 | __u32 injects; /* how many times leaf used injected bw */ | 297 | __u32 injects; /* how many times leaf used injected bw */ |
298 | __u32 tokens; | 298 | __u32 tokens; |
299 | __u32 ctokens; | 299 | __u32 ctokens; |
300 | }; | 300 | }; |
diff --git a/networking/libiproute/ll_proto.c b/networking/libiproute/ll_proto.c index 45afdb82a..9b5260b32 100644 --- a/networking/libiproute/ll_proto.c +++ b/networking/libiproute/ll_proto.c | |||
@@ -26,62 +26,62 @@ static struct { | |||
26 | char *name; | 26 | char *name; |
27 | } llproto_names[] = { | 27 | } llproto_names[] = { |
28 | __PF(LOOP,loop) | 28 | __PF(LOOP,loop) |
29 | __PF(PUP,pup) | 29 | __PF(PUP,pup) |
30 | #ifdef ETH_P_PUPAT | 30 | #ifdef ETH_P_PUPAT |
31 | __PF(PUPAT,pupat) | 31 | __PF(PUPAT,pupat) |
32 | #endif | 32 | #endif |
33 | __PF(IP,ip) | 33 | __PF(IP,ip) |
34 | __PF(X25,x25) | 34 | __PF(X25,x25) |
35 | __PF(ARP,arp) | 35 | __PF(ARP,arp) |
36 | __PF(BPQ,bpq) | 36 | __PF(BPQ,bpq) |
37 | #ifdef ETH_P_IEEEPUP | 37 | #ifdef ETH_P_IEEEPUP |
38 | __PF(IEEEPUP,ieeepup) | 38 | __PF(IEEEPUP,ieeepup) |
39 | #endif | 39 | #endif |
40 | #ifdef ETH_P_IEEEPUPAT | 40 | #ifdef ETH_P_IEEEPUPAT |
41 | __PF(IEEEPUPAT,ieeepupat) | 41 | __PF(IEEEPUPAT,ieeepupat) |
42 | #endif | 42 | #endif |
43 | __PF(DEC,dec) | 43 | __PF(DEC,dec) |
44 | __PF(DNA_DL,dna_dl) | 44 | __PF(DNA_DL,dna_dl) |
45 | __PF(DNA_RC,dna_rc) | 45 | __PF(DNA_RC,dna_rc) |
46 | __PF(DNA_RT,dna_rt) | 46 | __PF(DNA_RT,dna_rt) |
47 | __PF(LAT,lat) | 47 | __PF(LAT,lat) |
48 | __PF(DIAG,diag) | 48 | __PF(DIAG,diag) |
49 | __PF(CUST,cust) | 49 | __PF(CUST,cust) |
50 | __PF(SCA,sca) | 50 | __PF(SCA,sca) |
51 | __PF(RARP,rarp) | 51 | __PF(RARP,rarp) |
52 | __PF(ATALK,atalk) | 52 | __PF(ATALK,atalk) |
53 | __PF(AARP,aarp) | 53 | __PF(AARP,aarp) |
54 | __PF(IPX,ipx) | 54 | __PF(IPX,ipx) |
55 | __PF(IPV6,ipv6) | 55 | __PF(IPV6,ipv6) |
56 | #ifdef ETH_P_PPP_DISC | 56 | #ifdef ETH_P_PPP_DISC |
57 | __PF(PPP_DISC,ppp_disc) | 57 | __PF(PPP_DISC,ppp_disc) |
58 | #endif | 58 | #endif |
59 | #ifdef ETH_P_PPP_SES | 59 | #ifdef ETH_P_PPP_SES |
60 | __PF(PPP_SES,ppp_ses) | 60 | __PF(PPP_SES,ppp_ses) |
61 | #endif | 61 | #endif |
62 | #ifdef ETH_P_ATMMPOA | 62 | #ifdef ETH_P_ATMMPOA |
63 | __PF(ATMMPOA,atmmpoa) | 63 | __PF(ATMMPOA,atmmpoa) |
64 | #endif | 64 | #endif |
65 | #ifdef ETH_P_ATMFATE | 65 | #ifdef ETH_P_ATMFATE |
66 | __PF(ATMFATE,atmfate) | 66 | __PF(ATMFATE,atmfate) |
67 | #endif | 67 | #endif |
68 | 68 | ||
69 | __PF(802_3,802_3) | 69 | __PF(802_3,802_3) |
70 | __PF(AX25,ax25) | 70 | __PF(AX25,ax25) |
71 | __PF(ALL,all) | 71 | __PF(ALL,all) |
72 | __PF(802_2,802_2) | 72 | __PF(802_2,802_2) |
73 | __PF(SNAP,snap) | 73 | __PF(SNAP,snap) |
74 | __PF(DDCMP,ddcmp) | 74 | __PF(DDCMP,ddcmp) |
75 | __PF(WAN_PPP,wan_ppp) | 75 | __PF(WAN_PPP,wan_ppp) |
76 | __PF(PPP_MP,ppp_mp) | 76 | __PF(PPP_MP,ppp_mp) |
77 | __PF(LOCALTALK,localtalk) | 77 | __PF(LOCALTALK,localtalk) |
78 | __PF(PPPTALK,ppptalk) | 78 | __PF(PPPTALK,ppptalk) |
79 | __PF(TR_802_2,tr_802_2) | 79 | __PF(TR_802_2,tr_802_2) |
80 | __PF(MOBITEX,mobitex) | 80 | __PF(MOBITEX,mobitex) |
81 | __PF(CONTROL,control) | 81 | __PF(CONTROL,control) |
82 | __PF(IRDA,irda) | 82 | __PF(IRDA,irda) |
83 | #ifdef ETH_P_ECONET | 83 | #ifdef ETH_P_ECONET |
84 | __PF(ECONET,econet) | 84 | __PF(ECONET,econet) |
85 | #endif | 85 | #endif |
86 | 86 | ||
87 | { 0x8100, "802.1Q" }, | 87 | { 0x8100, "802.1Q" }, |
diff --git a/networking/libiproute/utils.h b/networking/libiproute/utils.h index b51e07be4..e79e177b9 100644 --- a/networking/libiproute/utils.h +++ b/networking/libiproute/utils.h | |||
@@ -43,7 +43,7 @@ typedef struct | |||
43 | #define AF_DECnet 12 | 43 | #define AF_DECnet 12 |
44 | #endif | 44 | #endif |
45 | 45 | ||
46 | struct dn_naddr | 46 | struct dn_naddr |
47 | { | 47 | { |
48 | unsigned short a_len; | 48 | unsigned short a_len; |
49 | unsigned char a_addr[DN_MAXADDL]; | 49 | unsigned char a_addr[DN_MAXADDL]; |