History

netfilter: nft_dynset: support for element deletion

This patch implements the delete operation from the ruleset. It implements a new delete() function in nft_set_rhash. It is simpler to use than the already existing remove(), because it only takes the set and the key as arguments, whereas remove() expects a full nft_set_elem structure.

Ander Juaristi committed 7 years ago

Commit d0a8d871 parent 65af4a14 files · +35 −1Browse files

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

Unified · Split

include/uapi/linux/netfilter/nf_tables.h+1−0
@@ -636,6 +636,7 @@ enum nft_lookup_attributes { · 635 unmodified lines
636636 enum nft_dynset_ops {
637637 NFT_DYNSET_OP_ADD,
638638 NFT_DYNSET_OP_UPDATE,
639+ NFT_DYNSET_OP_DELETE,
639640 };
640641
641642 enum nft_dynset_flags {