From f2f3a4e6d5f2e64769f9e7946f594a3d07f48cda Mon Sep 17 00:00:00 2001 From: Tomasz Bursztyka Date: Thu, 3 Oct 2013 16:00:47 +0300 Subject: xtables: arp: Parse properly target options Target never gets its options parsed. Signed-off-by: Tomasz Bursztyka Signed-off-by: Pablo Neira Ayuso --- iptables/xtables-arp.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'iptables/xtables-arp.c') diff --git a/iptables/xtables-arp.c b/iptables/xtables-arp.c index 8072d90d..411a6998 100644 --- a/iptables/xtables-arp.c +++ b/iptables/xtables-arp.c @@ -1317,6 +1317,10 @@ int do_commandarp(struct nft_handle *h, int argc, char *argv[], char **table) exit_tryhelp(2); default: + if (target) { + xtables_option_tpcall(c, argv, + invert, target, &fw); + } break; } invert = FALSE; @@ -1325,8 +1329,6 @@ int do_commandarp(struct nft_handle *h, int argc, char *argv[], char **table) if (target) xtables_option_tfcall(target); - /* Fix me: must put inverse options checking here --MN */ - if (optind < argc) xtables_error(PARAMETER_PROBLEM, "unknown arguments found on commandline"); -- cgit v1.2.3