Skip to content
Commit e15e5027 authored by Florian Westphal's avatar Florian Westphal
Browse files

netfilter: xt_mangle: only check verdict part of return value



These checks assume that the caller only returns NF_DROP without
any errno embedded in the upper bits.

This is fine right now, but followup patches will start to propagate
such errors to allow kfree_skb_drop_reason() in the called functions,
those would then indicate 'errno << 8 | NF_STOLEN'.

To not break things we have to mask those parts out.

Signed-off-by: default avatarFlorian Westphal <fw@strlen.de>
parent a0a86022
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment