diff options
author | Phil Sutter <phil@nwl.cc> | 2022-11-23 03:35:34 +0100 |
---|---|---|
committer | Phil Sutter <phil@nwl.cc> | 2022-11-24 10:24:06 +0100 |
commit | c6d7a1dd72a21e7f8f117eedb61bff5b94ef5f0c (patch) | |
tree | 596b743c708e59bfc1a8643e54604e32178e23c8 /extensions | |
parent | 83241d3f173dd57c3fdc347490213776a070fa40 (diff) |
extensions: libebt_mark: Fix mark target xlate
Target value is constructed setting all non-target bits to one instead
of zero.
Fixes: 03ecffe6c2cc0 ("ebtables-compat: add initial translations")
Signed-off-by: Phil Sutter <phil@nwl.cc>
Diffstat (limited to 'extensions')
-rw-r--r-- | extensions/libebt_mark.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/extensions/libebt_mark.c b/extensions/libebt_mark.c index 423c5c91..40e49618 100644 --- a/extensions/libebt_mark.c +++ b/extensions/libebt_mark.c @@ -201,7 +201,7 @@ static int brmark_xlate(struct xt_xlate *xl, return 0; } - tmp = info->target & EBT_VERDICT_BITS; + tmp = info->target | ~EBT_VERDICT_BITS; xt_xlate_add(xl, "0x%lx %s ", info->mark, brmark_verdict(tmp)); return 1; } |