This seems sufficient for ifup and ifdown to actually work

as advertised.  Works for me (at least with glibc)
This commit is contained in:
Eric Andersen
2003-01-27 17:41:19 +00:00
parent 22237017a7
commit 66a3af9d7c
3 changed files with 59 additions and 35 deletions

View File

@@ -47,6 +47,8 @@ void ip_parse_common_args(int *argcp, char ***argvp)
if (matches(opt, "-family") == 0) {
argc--;
argv++;
if (! argv[1])
show_usage();
if (strcmp(argv[1], "inet") == 0)
preferred_family = AF_INET;
else if (strcmp(argv[1], "inet6") == 0)

View File

@@ -524,8 +524,10 @@ extern int ipaddr_list_or_flush(int argc, char **argv, int flush)
exit(1);
}
if (filter.flushed == 0) {
#if 0
if (round == 0)
fprintf(stderr, "Nothing to flush.\n");
#endif
fflush(stdout);
return 0;
}