On Mon, Aug 22, 2016 at 02:47:15PM -0400, Brian Haley wrote: > > iptables-restore was missing -n, -T and -M from the > usage message, added them to match the man page. > > Signed-off-by: Brian Haley <brian.haley@xxxxxxx> > > diff --git a/iptables/ip6tables-restore.c b/iptables/ip6tables-restore.c > index 9393924..dc0acb0 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" Could you also propagate these changes to iptables/xtables-restore.c? Thanks! > " [ --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 638b171..2f1522d 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); > } > -- > To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in > the body of a message to majordomo@xxxxxxxxxxxxxxx > More majordomo info at http://vger.kernel.org/majordomo-info.html -- To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html