]> git.ipfire.org Git - thirdparty/nftables.git/commit
netlink: add __binop_adjust helper
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)
commita0ed637e76da3fe44eb34eb2ab91d72be2365411
treeb3774ac9bc0c3d44396f15fda8fb9534d2db7b89
parent7947f4535af129290aa84d8173a8e5b2a296ed82
netlink: add __binop_adjust helper

binop_adjust takes an expression whose LHS is expected to be
the binop expression that we use to adjust a payload expression
based on a mask (to match sub-byte headers like iphdr->version).

A followup patch has to pass the binop directly, so add
add a helper for it.

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