]> git.ipfire.org Git - thirdparty/nftables.git/commit
evaluate: handle payload matching split in two bytes
authorPablo Neira Ayuso <pablo@netfilter.org>
Mon, 7 Dec 2015 11:48:59 +0000 (12:48 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Wed, 11 May 2016 21:01:31 +0000 (23:01 +0200)
commit0c9796c2f6bbd8ff359d2558dd2e4035f1b794bd
tree2fbd07995e5bd75f3526b8d2948561881c92219d
parentf0d0c7703c1b7eed847d1e830d8d66497f6fff62
evaluate: handle payload matching split in two bytes

When the bits are split between two bytes and the payload field is
smaller than one byte, we need to extend the expression length on both
sides (payload and constant) of the relational expression.

The existing trimming from the delinerization step handles the listing
for us, so no changes on that front.

This patch allows us to match the IPv6 DSCP field which falls into the
case that is described above.

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
src/evaluate.c