summaryrefslogtreecommitdiffstats
path: root/src/proto.c
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2013-09-17 14:29:29 +0200
committerFlorian Westphal <fw@strlen.de>2015-09-18 00:06:01 +0200
commitc3f0501b41e653e980e60d14eb88ac9dfc3afc61 (patch)
tree6fb7d14f5bca09229cf98bbf128f52f9fe01638d /src/proto.c
parent61ae81a313023e0b790594491bc030c06a3c0eab (diff)
src: netlink_linearize: handle sub-byte lengths
Currently length is expr->len / BITS_PER_BYTE, i.e. expr->len has to be a multiple of 8. When core asks for e.g. '9 bits', we truncate this to 8. Round up to 16 and inject a 9-bit mask to zero out the parts we're not interested in. This will also need change to the delinarization step to remove the extra op when dumping rules from kernel. Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'src/proto.c')
0 files changed, 0 insertions, 0 deletions