]> git.ipfire.org Git - thirdparty/nftables.git/commit
netlink: add support for handling shift expressions.
authorJeremy Sowden <jeremy@azazel.net>
Sun, 19 Jan 2020 22:57:09 +0000 (22:57 +0000)
committerPablo Neira Ayuso <pablo@netfilter.org>
Tue, 28 Jan 2020 19:16:02 +0000 (20:16 +0100)
commit694cf23999eea468dc3124f1269f333d47a75a5e
tree10f61ff69b87508a9a2e61bcf94b116bdd1f6a8c
parent21099e5e2dc0650e88ec7bbe6b3b3e56cb20bc65
netlink: add support for handling shift expressions.

The kernel supports bitwise shift operations, so add support to the
netlink linearization and delinearization code.  The number of bits (the
righthand operand) is expected to be a 32-bit value in host endianness.

Signed-off-by: Jeremy Sowden <jeremy@azazel.net>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
src/netlink_delinearize.c
src/netlink_linearize.c