History

netfilter: bitwise: add NFTA_BITWISE_DATA attribute.

Add a new bitwise netlink attribute that will be used by shift operations to store the size of the shift. It is not used by boolean operations.

Jeremy Sowden committed 6 years ago

Commit 779f7251 parent ed991d42 files · +8 −0Browse files

Showing the changes to include/uapi/linux (1 of 2 files). Show all

Unified · Split

include/uapi/linux/netfilter/nf_tables.h+3−0
@@ -503,6 +503,8 @@ enum nft_bitwise_ops { · 502 unmodified lines
503 * @NFTA_BITWISE_MASK: mask value (NLA_NESTED: nft_data_attributes)503 * @NFTA_BITWISE_MASK: mask value (NLA_NESTED: nft_data_attributes)
504 * @NFTA_BITWISE_XOR: xor value (NLA_NESTED: nft_data_attributes)504 * @NFTA_BITWISE_XOR: xor value (NLA_NESTED: nft_data_attributes)
505 * @NFTA_BITWISE_OP: type of operation (NLA_U32: nft_bitwise_ops)505 * @NFTA_BITWISE_OP: type of operation (NLA_U32: nft_bitwise_ops)
506 * @NFTA_BITWISE_DATA: argument for non-boolean operations
507 * (NLA_NESTED: nft_data_attributes)
506 *508 *
507 * The bitwise expression performs the following operation:509 * The bitwise expression performs the following operation:
508 *510 *
@@ -524,6 +526,7 @@ enum nft_bitwise_attributes { · 15 unmodified lines
524 NFTA_BITWISE_MASK,526 NFTA_BITWISE_MASK,
525 NFTA_BITWISE_XOR,527 NFTA_BITWISE_XOR,
526 NFTA_BITWISE_OP,528 NFTA_BITWISE_OP,
529 NFTA_BITWISE_DATA,
527 __NFTA_BITWISE_MAX530 __NFTA_BITWISE_MAX
528};531};
529#define NFTA_BITWISE_MAX (__NFTA_BITWISE_MAX - 1)532#define NFTA_BITWISE_MAX (__NFTA_BITWISE_MAX - 1)