]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
arptables: ignore --table argument.
authorFlorian Westphal <fw@strlen.de>
Wed, 7 Nov 2018 09:16:24 +0000 (10:16 +0100)
committerFlorian Westphal <fw@strlen.de>
Mon, 12 Nov 2018 15:30:22 +0000 (16:30 +0100)
You can run 'arptables-legacy -t foobar' and commands work fine,
as it still operates on filter table (the only table that exists).

Signed-off-by: Florian Westphal <fw@strlen.de>
iptables/xtables-arp.c

index 6a095bfd1629606960badf1f2484eb8979c47219..d0cd68876c996fe484ecde1f51870dfd34752a58 100644 (file)
@@ -1191,7 +1191,10 @@ int do_commandarp(struct nft_handle *h, int argc, char *argv[], char **table,
                        if (invert)
                                xtables_error(PARAMETER_PROBLEM,
                                              "unexpected ! flag before --table");
-                       *table = argv[optind-1];
+                       /* ignore this option.
+                        * arptables-legacy parses it, but libarptc doesn't use it.
+                        * arptables only has a 'filter' table anyway.
+                        */
                        break;
 
                case 'V':