OSDN Git Service

netfilter: nft_dynset: support for element deletion
authorAnder Juaristi <a@juaristi.eus>
Sat, 17 Aug 2019 11:26:52 +0000 (13:26 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Tue, 27 Aug 2019 15:27:08 +0000 (17:27 +0200)
commitd0a8d877da976c244092ce859683b2fa116217db
treec1a4f5cc5d574ffe15d949e54bde5928a9bf99ed
parent65af4a10743b766e319fb53812c5926c6d98b100
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.

Signed-off-by: Ander Juaristi <a@juaristi.eus>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
include/net/netfilter/nf_tables.h
include/uapi/linux/netfilter/nf_tables.h
net/netfilter/nft_dynset.c
net/netfilter/nft_set_hash.c