diff options
author | Florian Westphal <fw@strlen.de> | 2018-11-12 12:49:11 +0100 |
---|---|---|
committer | Florian Westphal <fw@strlen.de> | 2018-11-12 14:31:37 +0100 |
commit | 5f508b76a0cebaf91965ffa678089222e2d47964 (patch) | |
tree | 87ce013ac39490afc89811f34308820805d33fac /extensions/libebt_mark_m.c | |
parent | 583b27eabcad6588ef6c923551df444c4e30a210 (diff) |
ebtables: use extrapositioned negation consistently
in the iptables universe, we enforce extrapositioned negation:
! -i foo
"-i ! foo" is not even supported anymore.
At least make sure that ebtables prints the former syntax everywhere as
well so we don't have a mix of both ways.
Parsing of --option ! 42 will still work for backwards compat reasons.
Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'extensions/libebt_mark_m.c')
-rw-r--r-- | extensions/libebt_mark_m.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/extensions/libebt_mark_m.c b/extensions/libebt_mark_m.c index 244fe12a..7bde77d9 100644 --- a/extensions/libebt_mark_m.c +++ b/extensions/libebt_mark_m.c @@ -86,9 +86,9 @@ static void brmark_m_print(const void *ip, const struct xt_entry_match *match, { struct ebt_mark_m_info *info = (struct ebt_mark_m_info *)match->data; - printf("--mark "); if (info->invert) printf("! "); + printf("--mark "); if (info->bitmask == EBT_MARK_OR) printf("/0x%lx ", info->mask); else if (info->mask != 0xffffffff) |