From: Brian Haley Date: Tue, 23 Aug 2016 14:14:47 +0000 (-0400) Subject: iptables-restore: add missing arguments to usage message X-Git-Tag: v1.6.1~39 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=27579fe10473c475f3e4dcf66c862f3a69995ea7;p=thirdparty%2Fiptables.git iptables-restore: add missing arguments to usage message iptables-restore was missing -n, -T and -M from the usage message, added them to match the man page. Cleaned-up other *restore files as well. Signed-off-by: Brian Haley Signed-off-by: Pablo Neira Ayuso --- diff --git a/iptables/ip6tables-restore.c b/iptables/ip6tables-restore.c index 93939247..dc0acb05 100644 --- a/iptables/ip6tables-restore.c +++ b/iptables/ip6tables-restore.c @@ -43,13 +43,14 @@ static void print_usage(const char *name, const char *version) __attribute__((no static void print_usage(const char *name, const char *version) { - fprintf(stderr, "Usage: %s [-c] [-v] [-t] [-h]\n" + fprintf(stderr, "Usage: %s [-c] [-v] [-t] [-h] [-n] [-T table] [-M command]\n" " [ --counters ]\n" " [ --verbose ]\n" " [ --test ]\n" " [ --help ]\n" " [ --noflush ]\n" - " [ --modprobe=]\n", name); + " [ --table= ]\n" + " [ --modprobe= ]\n", name); exit(1); } diff --git a/iptables/iptables-restore.c b/iptables/iptables-restore.c index 638b1714..2f1522db 100644 --- a/iptables/iptables-restore.c +++ b/iptables/iptables-restore.c @@ -42,14 +42,14 @@ static void print_usage(const char *name, const char *version) __attribute__((no static void print_usage(const char *name, const char *version) { - fprintf(stderr, "Usage: %s [-c] [-v] [-t] [-h]\n" + fprintf(stderr, "Usage: %s [-c] [-v] [-t] [-h] [-n] [-T table] [-M command]\n" " [ --counters ]\n" " [ --verbose ]\n" " [ --test ]\n" " [ --help ]\n" " [ --noflush ]\n" " [ --table=
]\n" - " [ --modprobe=]\n", name); + " [ --modprobe= ]\n", name); exit(1); } diff --git a/iptables/xtables-restore.c b/iptables/xtables-restore.c index cb60cce1..a551c8c1 100644 --- a/iptables/xtables-restore.c +++ b/iptables/xtables-restore.c @@ -46,14 +46,16 @@ static void print_usage(const char *name, const char *version) __attribute__((no static void print_usage(const char *name, const char *version) { - fprintf(stderr, "Usage: %s [-c] [-v] [-t] [-h]\n" + fprintf(stderr, "Usage: %s [-c] [-v] [-t] [-h] [-n] [-T table] [-M command] [-4] [-6]\n" " [ --counters ]\n" " [ --verbose ]\n" " [ --test ]\n" " [ --help ]\n" " [ --noflush ]\n" " [ --table=
]\n" - " [ --modprobe=]\n", name); + " [ --modprobe= ]\n" + " [ --ipv4 ]\n" + " [ --ipv6 ]\n", name); exit(1); }