diff options
author | Brian Haley <brian.haley@hpe.com> | 2016-08-23 10:14:47 -0400 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2016-08-23 17:53:40 +0200 |
commit | 27579fe10473c475f3e4dcf66c862f3a69995ea7 (patch) | |
tree | 161c2e5bc75c52dfdf3d7e30b19a0d1124e40dbc /iptables | |
parent | b2b811ed4a8261430def40b7d600ccb0f4927492 (diff) |
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 <brian.haley@hpe.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'iptables')
-rw-r--r-- | iptables/ip6tables-restore.c | 5 | ||||
-rw-r--r-- | iptables/iptables-restore.c | 4 | ||||
-rw-r--r-- | iptables/xtables-restore.c | 6 |
3 files changed, 9 insertions, 6 deletions
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=<command>]\n", name); + " [ --table=<TABLE> ]\n" + " [ --modprobe=<command> ]\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=<TABLE> ]\n" - " [ --modprobe=<command>]\n", name); + " [ --modprobe=<command> ]\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=<TABLE> ]\n" - " [ --modprobe=<command>]\n", name); + " [ --modprobe=<command> ]\n" + " [ --ipv4 ]\n" + " [ --ipv6 ]\n", name); exit(1); } |