]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: bitwise: add support for shifts.
authorJeremy Sowden <jeremy@azazel.net>
Wed, 15 Jan 2020 20:05:57 +0000 (20:05 +0000)
committerPablo Neira Ayuso <pablo@netfilter.org>
Thu, 16 Jan 2020 14:52:02 +0000 (15:52 +0100)
commitc42f5246345d3f331e44ca6ea3fbe8045324cbf2
tree68eb53ca8df97916a56aeae72a37536f84647b34
parenta9b39170bb0550e369149b823ba6d31e38e767a3
netfilter: bitwise: add support for shifts.

Hitherto nft_bitwise has only supported boolean operations: NOT, AND, OR
and XOR.  Extend it to do shifts as well.

Signed-off-by: Jeremy Sowden <jeremy@azazel.net>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
include/uapi/linux/netfilter/nf_tables.h
net/netfilter/nft_bitwise.c