The callback is supposed to return 1 on success, not 0. Fixes: 24ce7465056ae ("ebtables-compat: add redirect match extension") Signed-off-by: Phil Sutter <phil@xxxxxx> --- extensions/libebt_redirect.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions/libebt_redirect.c b/extensions/libebt_redirect.c index 6e653997ee99e..4d4c7a02cea89 100644 --- a/extensions/libebt_redirect.c +++ b/extensions/libebt_redirect.c @@ -86,7 +86,7 @@ static int brredir_xlate(struct xt_xlate *xl, xt_xlate_add(xl, "meta set pkttype host"); if (red->target != EBT_ACCEPT) xt_xlate_add(xl, " %s ", brredir_verdict(red->target)); - return 0; + return 1; } static struct xtables_target brredirect_target = { -- 2.38.0