From: Phil Sutter Date: Wed, 23 Nov 2022 02:35:34 +0000 (+0100) Subject: extensions: libebt_mark: Fix mark target xlate X-Git-Tag: v1.8.9~60 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c6d7a1dd72a21e7f8f117eedb61bff5b94ef5f0c;p=thirdparty%2Fiptables.git 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 --- 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; }