diff options
author | Eric Andersen <andersen@codepoet.org> | 2003-01-27 17:41:19 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2003-01-27 17:41:19 +0000 |
commit | 66a3af9d7c83e6b649caec4b6dd0cb252ddf76f1 (patch) | |
tree | f9e264e3e3a687505070dd8707eb29f35ad97234 /networking/libiproute | |
parent | 22237017a7abee1bc6c664c255a783e9dfe2b037 (diff) | |
download | busybox-w32-66a3af9d7c83e6b649caec4b6dd0cb252ddf76f1.tar.gz busybox-w32-66a3af9d7c83e6b649caec4b6dd0cb252ddf76f1.tar.bz2 busybox-w32-66a3af9d7c83e6b649caec4b6dd0cb252ddf76f1.zip |
This seems sufficient for ifup and ifdown to actually work
as advertised. Works for me (at least with glibc)
Diffstat (limited to 'networking/libiproute')
-rw-r--r-- | networking/libiproute/ip_parse_common_args.c | 2 | ||||
-rw-r--r-- | networking/libiproute/ipaddress.c | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/networking/libiproute/ip_parse_common_args.c b/networking/libiproute/ip_parse_common_args.c index ac9d94916..4b4355ac1 100644 --- a/networking/libiproute/ip_parse_common_args.c +++ b/networking/libiproute/ip_parse_common_args.c | |||
@@ -47,6 +47,8 @@ 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]) | ||
51 | show_usage(); | ||
50 | if (strcmp(argv[1], "inet") == 0) | 52 | if (strcmp(argv[1], "inet") == 0) |
51 | preferred_family = AF_INET; | 53 | preferred_family = AF_INET; |
52 | else if (strcmp(argv[1], "inet6") == 0) | 54 | else if (strcmp(argv[1], "inet6") == 0) |
diff --git a/networking/libiproute/ipaddress.c b/networking/libiproute/ipaddress.c index 88438179d..8eba90c77 100644 --- a/networking/libiproute/ipaddress.c +++ b/networking/libiproute/ipaddress.c | |||
@@ -524,8 +524,10 @@ extern int ipaddr_list_or_flush(int argc, char **argv, int flush) | |||
524 | exit(1); | 524 | exit(1); |
525 | } | 525 | } |
526 | if (filter.flushed == 0) { | 526 | if (filter.flushed == 0) { |
527 | #if 0 | ||
527 | if (round == 0) | 528 | if (round == 0) |
528 | fprintf(stderr, "Nothing to flush.\n"); | 529 | fprintf(stderr, "Nothing to flush.\n"); |
530 | #endif | ||
529 | fflush(stdout); | 531 | fflush(stdout); |
530 | return 0; | 532 | return 0; |
531 | } | 533 | } |