From 27579fe10473c475f3e4dcf66c862f3a69995ea7 Mon Sep 17 00:00:00 2001 From: Brian Haley Date: Tue, 23 Aug 2016 10:14:47 -0400 Subject: 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 --- iptables/ip6tables-restore.c | 5 +++-- iptables/iptables-restore.c | 4 ++-- iptables/xtables-restore.c | 6 ++++-- 3 files changed, 9 insertions(+), 6 deletions(-) (limited to 'iptables') 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); } -- cgit v1.2.3