diff options
Diffstat (limited to 'networking/libiproute/ipaddress.c')
-rw-r--r-- | networking/libiproute/ipaddress.c | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/networking/libiproute/ipaddress.c b/networking/libiproute/ipaddress.c index dfd84c000..17a838411 100644 --- a/networking/libiproute/ipaddress.c +++ b/networking/libiproute/ipaddress.c | |||
@@ -192,20 +192,20 @@ static NOINLINE int print_linkinfo(const struct nlmsghdr *n) | |||
192 | printf("%c link/%s ", _SL_, ll_type_n2a(ifi->ifi_type, b1)); | 192 | printf("%c link/%s ", _SL_, ll_type_n2a(ifi->ifi_type, b1)); |
193 | 193 | ||
194 | if (tb[IFLA_ADDRESS]) { | 194 | if (tb[IFLA_ADDRESS]) { |
195 | fputs(ll_addr_n2a(RTA_DATA(tb[IFLA_ADDRESS]), | 195 | fputs_stdout(ll_addr_n2a(RTA_DATA(tb[IFLA_ADDRESS]), |
196 | RTA_PAYLOAD(tb[IFLA_ADDRESS]), | 196 | RTA_PAYLOAD(tb[IFLA_ADDRESS]), |
197 | ifi->ifi_type, | 197 | ifi->ifi_type, |
198 | b1, sizeof(b1)), stdout); | 198 | b1, sizeof(b1))); |
199 | } | 199 | } |
200 | if (tb[IFLA_BROADCAST]) { | 200 | if (tb[IFLA_BROADCAST]) { |
201 | if (ifi->ifi_flags & IFF_POINTOPOINT) | 201 | if (ifi->ifi_flags & IFF_POINTOPOINT) |
202 | printf(" peer "); | 202 | printf(" peer "); |
203 | else | 203 | else |
204 | printf(" brd "); | 204 | printf(" brd "); |
205 | fputs(ll_addr_n2a(RTA_DATA(tb[IFLA_BROADCAST]), | 205 | fputs_stdout(ll_addr_n2a(RTA_DATA(tb[IFLA_BROADCAST]), |
206 | RTA_PAYLOAD(tb[IFLA_BROADCAST]), | 206 | RTA_PAYLOAD(tb[IFLA_BROADCAST]), |
207 | ifi->ifi_type, | 207 | ifi->ifi_type, |
208 | b1, sizeof(b1)), stdout); | 208 | b1, sizeof(b1))); |
209 | } | 209 | } |
210 | } | 210 | } |
211 | bb_putchar('\n'); | 211 | bb_putchar('\n'); |
@@ -307,9 +307,7 @@ static int FAST_FUNC print_addrinfo(const struct sockaddr_nl *who UNUSED_PARAM, | |||
307 | printf(" family %d ", ifa->ifa_family); | 307 | printf(" family %d ", ifa->ifa_family); |
308 | 308 | ||
309 | if (rta_tb[IFA_LOCAL]) { | 309 | if (rta_tb[IFA_LOCAL]) { |
310 | fputs(rt_addr_n2a(ifa->ifa_family, RTA_DATA(rta_tb[IFA_LOCAL])), | 310 | fputs_stdout(rt_addr_n2a(ifa->ifa_family, RTA_DATA(rta_tb[IFA_LOCAL]))); |
311 | stdout | ||
312 | ); | ||
313 | 311 | ||
314 | if (rta_tb[IFA_ADDRESS] == NULL | 312 | if (rta_tb[IFA_ADDRESS] == NULL |
315 | || memcmp(RTA_DATA(rta_tb[IFA_ADDRESS]), RTA_DATA(rta_tb[IFA_LOCAL]), 4) == 0 | 313 | || memcmp(RTA_DATA(rta_tb[IFA_ADDRESS]), RTA_DATA(rta_tb[IFA_LOCAL]), 4) == 0 |
@@ -363,7 +361,7 @@ static int FAST_FUNC print_addrinfo(const struct sockaddr_nl *who UNUSED_PARAM, | |||
363 | if (ifa_flags) | 361 | if (ifa_flags) |
364 | printf("flags %02x ", ifa_flags); | 362 | printf("flags %02x ", ifa_flags); |
365 | if (rta_tb[IFA_LABEL]) | 363 | if (rta_tb[IFA_LABEL]) |
366 | fputs((char*)RTA_DATA(rta_tb[IFA_LABEL]), stdout); | 364 | fputs_stdout((char*)RTA_DATA(rta_tb[IFA_LABEL])); |
367 | if (rta_tb[IFA_CACHEINFO]) { | 365 | if (rta_tb[IFA_CACHEINFO]) { |
368 | struct ifa_cacheinfo *ci = RTA_DATA(rta_tb[IFA_CACHEINFO]); | 366 | struct ifa_cacheinfo *ci = RTA_DATA(rta_tb[IFA_CACHEINFO]); |
369 | char buf[128]; | 367 | char buf[128]; |