summaryrefslogtreecommitdiffstats
path: root/iptables/xtables-arp.c
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2018-11-07 10:16:24 +0100
committerFlorian Westphal <fw@strlen.de>2018-11-12 16:30:22 +0100
commitd703c1f0be5ea59e7ea42dfb100654d46719bb27 (patch)
tree1fd43a781234873ef22ffdee58c6f260e41bb924 /iptables/xtables-arp.c
parentd5754e3847f464f2cb45171e65f8f4b1082a540d (diff)
arptables: ignore --table argument.
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>
Diffstat (limited to 'iptables/xtables-arp.c')
-rw-r--r--iptables/xtables-arp.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/iptables/xtables-arp.c b/iptables/xtables-arp.c
index 6a095bfd..d0cd6887 100644
--- a/iptables/xtables-arp.c
+++ b/iptables/xtables-arp.c
@@ -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':