summaryrefslogtreecommitdiffstats
path: root/iptables/xtables-eb.c
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2018-04-13 17:41:47 +0200
committerFlorian Westphal <fw@strlen.de>2018-04-13 20:05:51 +0200
commit6a1dbdfb8c6aa5cfe24db2e5b2314c11c3d8e2df (patch)
tree065154385bad3e4f04d9239b90a293fb5f4f0014 /iptables/xtables-eb.c
parent3e94f0aecbfbe97b1a5a053f3b91201fc9fcdc59 (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>
Diffstat (limited to 'iptables/xtables-eb.c')
-rw-r--r--iptables/xtables-eb.c2
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;
}