From: Florian Westphal Date: Fri, 13 Apr 2018 15:41:47 +0000 (+0200) Subject: ebtables-compat: support intra-positioned negations X-Git-Tag: v1.8.0~123 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6a1dbdfb8c6aa5cfe24db2e5b2314c11c3d8e2df;p=thirdparty%2Fiptables.git 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 --- 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; }