From d703c1f0be5ea59e7ea42dfb100654d46719bb27 Mon Sep 17 00:00:00 2001 From: Florian Westphal Date: Wed, 7 Nov 2018 10:16:24 +0100 Subject: 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 --- iptables/xtables-arp.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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': -- cgit v1.2.3