diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2013-01-14 15:57:44 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2013-01-14 15:57:44 +0100 |
commit | 60cb48ca50fcff24aa6c3927f51e4a508fa118f4 (patch) | |
tree | 493e30821f3d484b7395ce9d9e4be39ec9a43126 /networking/libiproute | |
parent | b8173b603f57dcf918a67f1ec00763ab5f4e1cf8 (diff) | |
download | busybox-w32-60cb48ca50fcff24aa6c3927f51e4a508fa118f4.tar.gz busybox-w32-60cb48ca50fcff24aa6c3927f51e4a508fa118f4.tar.bz2 busybox-w32-60cb48ca50fcff24aa6c3927f51e4a508fa118f4.zip |
whitespace cleanup. no code changes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'networking/libiproute')
-rw-r--r-- | networking/libiproute/ipaddress.c | 10 | ||||
-rw-r--r-- | networking/libiproute/iprule.c | 14 | ||||
-rw-r--r-- | networking/libiproute/iptunnel.c | 2 |
3 files changed, 15 insertions, 11 deletions
diff --git a/networking/libiproute/ipaddress.c b/networking/libiproute/ipaddress.c index b3748e8c5..3fd3f4478 100644 --- a/networking/libiproute/ipaddress.c +++ b/networking/libiproute/ipaddress.c | |||
@@ -314,14 +314,16 @@ static int FAST_FUNC print_addrinfo(const struct sockaddr_nl *who UNUSED_PARAM, | |||
314 | if (rta_tb[IFA_BROADCAST]) { | 314 | if (rta_tb[IFA_BROADCAST]) { |
315 | printf("brd %s ", | 315 | printf("brd %s ", |
316 | rt_addr_n2a(ifa->ifa_family, | 316 | rt_addr_n2a(ifa->ifa_family, |
317 | RTA_DATA(rta_tb[IFA_BROADCAST]), | 317 | RTA_DATA(rta_tb[IFA_BROADCAST]), |
318 | abuf, sizeof(abuf))); | 318 | abuf, sizeof(abuf)) |
319 | ); | ||
319 | } | 320 | } |
320 | if (rta_tb[IFA_ANYCAST]) { | 321 | if (rta_tb[IFA_ANYCAST]) { |
321 | printf("any %s ", | 322 | printf("any %s ", |
322 | rt_addr_n2a(ifa->ifa_family, | 323 | rt_addr_n2a(ifa->ifa_family, |
323 | RTA_DATA(rta_tb[IFA_ANYCAST]), | 324 | RTA_DATA(rta_tb[IFA_ANYCAST]), |
324 | abuf, sizeof(abuf))); | 325 | abuf, sizeof(abuf)) |
326 | ); | ||
325 | } | 327 | } |
326 | printf("scope %s ", rtnl_rtscope_n2a(ifa->ifa_scope, b1)); | 328 | printf("scope %s ", rtnl_rtscope_n2a(ifa->ifa_scope, b1)); |
327 | if (ifa->ifa_flags & IFA_F_SECONDARY) { | 329 | if (ifa->ifa_flags & IFA_F_SECONDARY) { |
diff --git a/networking/libiproute/iprule.c b/networking/libiproute/iprule.c index dd3265c7c..241a6bf9d 100644 --- a/networking/libiproute/iprule.c +++ b/networking/libiproute/iprule.c | |||
@@ -73,15 +73,17 @@ static int FAST_FUNC print_rule(const struct sockaddr_nl *who UNUSED_PARAM, | |||
73 | if (tb[RTA_SRC]) { | 73 | if (tb[RTA_SRC]) { |
74 | if (r->rtm_src_len != host_len) { | 74 | if (r->rtm_src_len != host_len) { |
75 | printf("%s/%u", rt_addr_n2a(r->rtm_family, | 75 | printf("%s/%u", rt_addr_n2a(r->rtm_family, |
76 | RTA_DATA(tb[RTA_SRC]), | 76 | RTA_DATA(tb[RTA_SRC]), |
77 | abuf, sizeof(abuf)), | 77 | abuf, sizeof(abuf)), |
78 | r->rtm_src_len | 78 | r->rtm_src_len |
79 | ); | 79 | ); |
80 | } else { | 80 | } else { |
81 | fputs(format_host(r->rtm_family, | 81 | fputs(format_host(r->rtm_family, |
82 | RTA_PAYLOAD(tb[RTA_SRC]), | 82 | RTA_PAYLOAD(tb[RTA_SRC]), |
83 | RTA_DATA(tb[RTA_SRC]), | 83 | RTA_DATA(tb[RTA_SRC]), |
84 | abuf, sizeof(abuf)), stdout); | 84 | abuf, sizeof(abuf)), |
85 | stdout | ||
86 | ); | ||
85 | } | 87 | } |
86 | } else if (r->rtm_src_len) { | 88 | } else if (r->rtm_src_len) { |
87 | printf("0/%d", r->rtm_src_len); | 89 | printf("0/%d", r->rtm_src_len); |
diff --git a/networking/libiproute/iptunnel.c b/networking/libiproute/iptunnel.c index 5942feafc..2b651b926 100644 --- a/networking/libiproute/iptunnel.c +++ b/networking/libiproute/iptunnel.c | |||
@@ -438,7 +438,7 @@ static void print_tunnel(struct ip_tunnel_parm *p) | |||
438 | printf(" inherit"); | 438 | printf(" inherit"); |
439 | if (p->iph.tos & ~1) | 439 | if (p->iph.tos & ~1) |
440 | printf("%c%s ", p->iph.tos & 1 ? '/' : ' ', | 440 | printf("%c%s ", p->iph.tos & 1 ? '/' : ' ', |
441 | rtnl_dsfield_n2a(p->iph.tos & ~1, b1)); | 441 | rtnl_dsfield_n2a(p->iph.tos & ~1, b1)); |
442 | } | 442 | } |
443 | if (!(p->iph.frag_off & htons(IP_DF))) | 443 | if (!(p->iph.frag_off & htons(IP_DF))) |
444 | printf(" nopmtudisc"); | 444 | printf(" nopmtudisc"); |