diff options
Diffstat (limited to 'networking/route.c')
-rw-r--r-- | networking/route.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/networking/route.c b/networking/route.c index 5c4ce8ca3..d4c65f8cd 100644 --- a/networking/route.c +++ b/networking/route.c | |||
@@ -15,7 +15,7 @@ | |||
15 | * Foundation; either version 2 of the License, or (at | 15 | * Foundation; either version 2 of the License, or (at |
16 | * your option) any later version. | 16 | * your option) any later version. |
17 | * | 17 | * |
18 | * $Id: route.c,v 1.18 2002/08/22 18:24:43 bug1 Exp $ | 18 | * $Id: route.c,v 1.19 2002/11/26 09:02:06 bug1 Exp $ |
19 | * | 19 | * |
20 | * displayroute() code added by Vladimir N. Oleynik <dzo@simtreas.ru> | 20 | * displayroute() code added by Vladimir N. Oleynik <dzo@simtreas.ru> |
21 | * adjustments by Larry Doolittle <LRDoolittle@lbl.gov> | 21 | * adjustments by Larry Doolittle <LRDoolittle@lbl.gov> |
@@ -331,7 +331,7 @@ static int INET_setroute(int action, int options, char **args) | |||
331 | return EXIT_SUCCESS; | 331 | return EXIT_SUCCESS; |
332 | } | 332 | } |
333 | 333 | ||
334 | #if CONFIG_FEATURE_IPV6 | 334 | #ifdef CONFIG_FEATURE_IPV6 |
335 | static int INET6_setroute(int action, int options, char **args) | 335 | static int INET6_setroute(int action, int options, char **args) |
336 | { | 336 | { |
337 | struct in6_rtmsg rt; | 337 | struct in6_rtmsg rt; |
@@ -560,7 +560,7 @@ void displayroutes(int noresolve, int netstatfmt) | |||
560 | } | 560 | } |
561 | } | 561 | } |
562 | 562 | ||
563 | #if CONFIG_FEATURE_IPV6 | 563 | #ifdef CONFIG_FEATURE_IPV6 |
564 | static void INET6_displayroutes(int noresolve) | 564 | static void INET6_displayroutes(int noresolve) |
565 | { | 565 | { |
566 | char buff[256]; | 566 | char buff[256]; |
@@ -651,7 +651,7 @@ int route_main(int argc, char **argv) | |||
651 | int opt; | 651 | int opt; |
652 | int what = 0; | 652 | int what = 0; |
653 | 653 | ||
654 | #if CONFIG_FEATURE_IPV6 | 654 | #ifdef CONFIG_FEATURE_IPV6 |
655 | int af = AF_INET; | 655 | int af = AF_INET; |
656 | #endif | 656 | #endif |
657 | 657 | ||
@@ -669,7 +669,7 @@ int route_main(int argc, char **argv) | |||
669 | extended = 1; | 669 | extended = 1; |
670 | break; | 670 | break; |
671 | case 'A': | 671 | case 'A': |
672 | #if CONFIG_FEATURE_IPV6 | 672 | #ifdef CONFIG_FEATURE_IPV6 |
673 | if (strcmp(optarg, "inet6") == 0) | 673 | if (strcmp(optarg, "inet6") == 0) |
674 | af = AF_INET6; | 674 | af = AF_INET6; |
675 | break; | 675 | break; |
@@ -679,7 +679,7 @@ int route_main(int argc, char **argv) | |||
679 | } | 679 | } |
680 | } | 680 | } |
681 | 681 | ||
682 | #if CONFIG_FEATURE_IPV6 | 682 | #ifdef CONFIG_FEATURE_IPV6 |
683 | if (af == AF_INET6) | 683 | if (af == AF_INET6) |
684 | INET6_displayroutes(*argv != NULL); | 684 | INET6_displayroutes(*argv != NULL); |
685 | else | 685 | else |
@@ -699,7 +699,7 @@ int route_main(int argc, char **argv) | |||
699 | show_usage(); | 699 | show_usage(); |
700 | } | 700 | } |
701 | 701 | ||
702 | #if CONFIG_FEATURE_IPV6 | 702 | #ifdef CONFIG_FEATURE_IPV6 |
703 | if (af == AF_INET6) | 703 | if (af == AF_INET6) |
704 | return INET6_setroute(what, 0, argv + 2); | 704 | return INET6_setroute(what, 0, argv + 2); |
705 | #endif | 705 | #endif |