summaryrefslogtreecommitdiff
path: root/networking/route.c
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2013-01-14 01:34:48 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2013-01-14 01:34:48 +0100
commit6967578728a3eef43b7b2be4080dafc1b87f528d (patch)
tree76b79c4c81ce8e5ad4e57df5119efecef810e673 /networking/route.c
parent52185155088d0910d29c7f4fdf5cb3eecaac8965 (diff)
downloadbusybox-w32-6967578728a3eef43b7b2be4080dafc1b87f528d.tar.gz
busybox-w32-6967578728a3eef43b7b2be4080dafc1b87f528d.tar.bz2
busybox-w32-6967578728a3eef43b7b2be4080dafc1b87f528d.zip
whitespace fixes. no code changes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'networking/route.c')
-rw-r--r--networking/route.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/networking/route.c b/networking/route.c
index b7b5a02e6..45f2be542 100644
--- a/networking/route.c
+++ b/networking/route.c
@@ -409,7 +409,7 @@ static NOINLINE void INET6_setroute(int action, char **args)
409 bb_error_msg_and_die("resolving %s", args_m1); 409 bb_error_msg_and_die("resolving %s", args_m1);
410 } 410 }
411 memcpy(&rt.rtmsg_gateway, sa6.sin6_addr.s6_addr, 411 memcpy(&rt.rtmsg_gateway, sa6.sin6_addr.s6_addr,
412 sizeof(struct in6_addr)); 412 sizeof(struct in6_addr));
413 rt.rtmsg_flags |= RTF_GATEWAY; 413 rt.rtmsg_flags |= RTF_GATEWAY;
414 continue; 414 continue;
415 } 415 }
@@ -498,11 +498,11 @@ void FAST_FUNC bb_displayroutes(int noresolve, int netstatfmt)
498 FILE *fp = xfopen_for_read("/proc/net/route"); 498 FILE *fp = xfopen_for_read("/proc/net/route");
499 499
500 printf("Kernel IP routing table\n" 500 printf("Kernel IP routing table\n"
501 "Destination Gateway Genmask Flags %s Iface\n", 501 "Destination Gateway Genmask Flags %s Iface\n",
502 netstatfmt ? " MSS Window irtt" : "Metric Ref Use"); 502 netstatfmt ? " MSS Window irtt" : "Metric Ref Use");
503 503
504 if (fscanf(fp, "%*[^\n]\n") < 0) { /* Skip the first line. */ 504 if (fscanf(fp, "%*[^\n]\n") < 0) { /* Skip the first line. */
505 goto ERROR; /* Empty or missing line, or read error. */ 505 goto ERROR; /* Empty or missing line, or read error. */
506 } 506 }
507 while (1) { 507 while (1) {
508 int r; 508 int r;
@@ -567,8 +567,8 @@ static void INET6_displayroutes(void)
567 FILE *fp = xfopen_for_read("/proc/net/ipv6_route"); 567 FILE *fp = xfopen_for_read("/proc/net/ipv6_route");
568 568
569 printf("Kernel IPv6 routing table\n%-44s%-40s" 569 printf("Kernel IPv6 routing table\n%-44s%-40s"
570 "Flags Metric Ref Use Iface\n", 570 "Flags Metric Ref Use Iface\n",
571 "Destination", "Next Hop"); 571 "Destination", "Next Hop");
572 572
573 while (1) { 573 while (1) {
574 int r; 574 int r;
@@ -618,8 +618,8 @@ static void INET6_displayroutes(void)
618 (struct sockaddr *) &snaddr6.sin6_addr); 618 (struct sockaddr *) &snaddr6.sin6_addr);
619 snaddr6.sin6_family = AF_INET6; 619 snaddr6.sin6_family = AF_INET6;
620 naddr6 = INET6_rresolve((struct sockaddr_in6 *) &snaddr6, 620 naddr6 = INET6_rresolve((struct sockaddr_in6 *) &snaddr6,
621 0x0fff /* Apparently, upstream never resolves. */ 621 0x0fff /* Apparently, upstream never resolves. */
622 ); 622 );
623 623
624 if (!r) { /* 1st pass */ 624 if (!r) { /* 1st pass */
625 snprintf(addr6, sizeof(addr6), "%s/%d", naddr6, prefix_len); 625 snprintf(addr6, sizeof(addr6), "%s/%d", naddr6, prefix_len);