Bail out if userspace sends unsupported chain flags.
Showing the changes to include/uapi/linux (1 of 2 files). Show all
Unified · Split
| @@ -189,6 +189,9 @@ enum nft_chain_flags { · 188 unmodified lines | ||
| 189 | 189 | NFT_CHAIN_HW_OFFLOAD = (1 << 1), |
| 190 | 190 | NFT_CHAIN_BINDING = (1 << 2), |
| 191 | 191 | }; |
| 192 | +#define NFT_CHAIN_FLAGS (NFT_CHAIN_BASE | \ | |
| 193 | + NFT_CHAIN_HW_OFFLOAD | \ | |
| 194 | + NFT_CHAIN_BINDING) | |
| 192 | 195 | |
| 193 | 196 | /** |
| 194 | 197 | * enum nft_chain_attributes - nf_tables chain netlink attributes |