]> git.ipfire.org Git - thirdparty/nftables.git/commit
evaluate: add small helper to check if payload expr needs binop adjustment
authorFlorian Westphal <fw@strlen.de>
Mon, 1 Aug 2016 15:11:41 +0000 (17:11 +0200)
committerFlorian Westphal <fw@strlen.de>
Mon, 1 Aug 2016 15:11:41 +0000 (17:11 +0200)
commitfc2f5c4418283dbfc2e008bc4268e9d3b6f313ba
tree66663bbba5738bddd900bd81b2b3e24af79c9300
parentca6fd0a94fc2d2c6d662b76c22ffaa4f3ffc7a1f
evaluate: add small helper to check if payload expr needs binop adjustment

kernel can only deal with byte-sized and byte-aligned payload
expressions.

If the payload expression doesn't fit this requirement userspace
has to add explicit binop masks to remove the unwanted part(s).

Suggested-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: Florian Westphal <fw@strlen.de>
src/evaluate.c