From 6a1dbdfb8c6aa5cfe24db2e5b2314c11c3d8e2df Mon Sep 17 00:00:00 2001 From: Florian Westphal Date: Fri, 13 Apr 2018 17:41:47 +0200 Subject: ebtables-compat: support intra-positioned negations ebtables sitll allows intra-postitioned negations, e.g. --ip-src ! 1.2.3.4 support this. Signed-off-by: Florian Westphal --- iptables/xtables-eb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iptables/xtables-eb.c b/iptables/xtables-eb.c index 596894fd..adeaa129 100644 --- a/iptables/xtables-eb.c +++ b/iptables/xtables-eb.c @@ -1261,7 +1261,7 @@ big_iface_length: /* Is it a match_option? */ for (m = xtables_matches; m; m = m->next) { - if (m->parse(c - m->option_offset, argv, ebt_invert, &m->mflags, NULL, &m->m)) { + if (m->parse(c - m->option_offset, argv, ebt_check_inverse2(optarg, argc, argv), &m->mflags, NULL, &m->m)) { ebt_add_match(m, &cs); goto check_extension; } -- cgit v1.2.3