diff options
author | Florian Westphal <fw@strlen.de> | 2018-04-13 17:40:56 +0200 |
---|---|---|
committer | Florian Westphal <fw@strlen.de> | 2018-04-13 22:17:34 +0200 |
commit | e67c08880961f64984b396d6e8ad6bad04546253 (patch) | |
tree | 6aeef3826addf24e1c4b973de54a836c76626abe /extensions/libebt_mark_m.c | |
parent | 207dd5e853e42b4477f4cb7234fc28bb6b30275d (diff) |
ebtables-translate: add initial test cases
Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'extensions/libebt_mark_m.c')
-rw-r--r-- | extensions/libebt_mark_m.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/extensions/libebt_mark_m.c b/extensions/libebt_mark_m.c index 1e8d21db..244fe12a 100644 --- a/extensions/libebt_mark_m.c +++ b/extensions/libebt_mark_m.c @@ -109,13 +109,13 @@ static int brmark_m_xlate(struct xt_xlate *xl, xt_xlate_add(xl, "meta mark "); if (info->bitmask == EBT_MARK_OR) { - xt_xlate_add(xl, " and %0x%x %s0", info->mask, + xt_xlate_add(xl, "and 0x%x %s0 ", info->mask, info->invert ? "" : "!= "); } else if (info->mask != 0xffffffffU) { - xt_xlate_add(xl, " and 0x%x %s 0x%x", info->mask, - op == XT_OP_EQ ? "==" : "!=", info->mark); + xt_xlate_add(xl, "and 0x%x %s0x%x ", info->mask, + op == XT_OP_EQ ? "" : "!= ", info->mark); } else { - xt_xlate_add(xl, " %s0x%x", + xt_xlate_add(xl, "%s0x%x ", op == XT_OP_EQ ? "" : "!= ", info->mark); } |