]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
iptables-restore: add missing arguments to usage message
authorBrian Haley <brian.haley@hpe.com>
Tue, 23 Aug 2016 14:14:47 +0000 (10:14 -0400)
committerPablo Neira Ayuso <pablo@netfilter.org>
Tue, 23 Aug 2016 15:53:40 +0000 (17:53 +0200)
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>
iptables/ip6tables-restore.c
iptables/iptables-restore.c
iptables/xtables-restore.c

index 93939247a115da59a4615ae42fd25ac9c7729ded..dc0acb05a48a8df73278639f8ea656005b7a57d2 100644 (file)
@@ -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);
 }
index 638b171410de30b5d2eeefdda1541533332be1e9..2f1522db523ec2f524ba0ceb35948b3fdcf3336e 100644 (file)
@@ -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);
 }
index cb60cce1a4c683735d3ebbfbb1116d2736f9c90c..a551c8c19f7ff5e8607704cee3b4791c90d06e33 100644 (file)
@@ -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);
 }