History

netfilter: nft_dynset: do not reject set updates with NFT_SET_EVAL

NFT_SET_EVAL is signalling the kernel that this sets can be updated from the evaluation path, even if there are no expressions attached to the element. Otherwise, set updates with no expressions fail. Update description to describe the right semantics.

Pablo Neira Ayuso committed 8 years ago

Commit 215a31f1 parent 3fb61ec2 files · +2 −4Browse files

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

Unified · Split

include/uapi/linux/netfilter/nf_tables.h+1−1
@@ -266,7 +266,7 @@ enum nft_rule_compat_attributes { · 265 unmodified lines
266 * @NFT_SET_INTERVAL: set contains intervals266 * @NFT_SET_INTERVAL: set contains intervals
267 * @NFT_SET_MAP: set is used as a dictionary267 * @NFT_SET_MAP: set is used as a dictionary
268 * @NFT_SET_TIMEOUT: set uses timeouts268 * @NFT_SET_TIMEOUT: set uses timeouts
269 * @NFT_SET_EVAL: set contains expressions for evaluation269 * @NFT_SET_EVAL: set can be updated from the evaluation path
270 * @NFT_SET_OBJECT: set contains stateful objects270 * @NFT_SET_OBJECT: set contains stateful objects
271 */271 */
272enum nft_set_flags {272enum nft_set_flags {