]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
arptables: Support --set-counters option
authorPhil Sutter <phil@nwl.cc>
Thu, 22 Nov 2018 19:50:13 +0000 (20:50 +0100)
committerFlorian Westphal <fw@strlen.de>
Thu, 22 Nov 2018 22:36:44 +0000 (23:36 +0100)
Relevant code for this was already present (short option '-c'), just the
long option definition was missing.

While being at it, add '-c' to help text.

Signed-off-by: Phil Sutter <phil@nwl.cc>
Signed-off-by: Florian Westphal <fw@strlen.de>
iptables/xtables-arp.c

index 5a9924ca564425fceb9f71a4114695142d98c707..2f369d9aadb01188978b37921c9fab139a67cfe9 100644 (file)
@@ -144,6 +144,7 @@ static struct option original_opts[] = {
        { "help", 2, 0, 'h' },
        { "line-numbers", 0, 0, '0' },
        { "modprobe", 1, 0, 'M' },
+       { "set-counters", 1, 0, 'c' },
        { 0 }
 };
 
@@ -481,7 +482,7 @@ exit_printhelp(void)
 "  --line-numbers              print line numbers when listing\n"
 "  --exact     -x              expand numbers (display exact values)\n"
 "  --modprobe=<command>                try to insert modules using this command\n"
-"  --set-counters PKTS BYTES   set the counter during insert/append\n"
+"  --set-counters -c PKTS BYTES        set the counter during insert/append\n"
 "[!] --version -V              print package version.\n");
        printf(" opcode strings: \n");
         for (i = 0; i < NUMOPCODES; i++)