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
503503 * @NFTA_BITWISE_MASK: mask value (NLA_NESTED: nft_data_attributes)
504504 * @NFTA_BITWISE_XOR: xor value (NLA_NESTED: nft_data_attributes)
505505 * @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)
506508 *
507509 * The bitwise expression performs the following operation:
508510 *
@@ -524,6 +526,7 @@ enum nft_bitwise_attributes { · 15 unmodified lines
524526 NFTA_BITWISE_MASK,
525527 NFTA_BITWISE_XOR,
526528 NFTA_BITWISE_OP,
529+ NFTA_BITWISE_DATA,
527530 __NFTA_BITWISE_MAX
528531 };
529532 #define NFTA_BITWISE_MAX (__NFTA_BITWISE_MAX - 1)