diff options
author | Florian Westphal <fw@strlen.de> | 2018-04-13 17:41:47 +0200 |
---|---|---|
committer | Florian Westphal <fw@strlen.de> | 2018-04-13 20:05:51 +0200 |
commit | 6a1dbdfb8c6aa5cfe24db2e5b2314c11c3d8e2df (patch) | |
tree | 065154385bad3e4f04d9239b90a293fb5f4f0014 | |
parent | 3e94f0aecbfbe97b1a5a053f3b91201fc9fcdc59 (diff) |
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 <fw@strlen.de>
-rw-r--r-- | iptables/xtables-eb.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |