From: Florian Westphal Date: Wed, 7 Nov 2018 09:16:24 +0000 (+0100) Subject: arptables: ignore --table argument. X-Git-Tag: v1.8.2~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d703c1f0be5ea59e7ea42dfb100654d46719bb27;p=thirdparty%2Fiptables.git 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 --- 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':