]> git.ipfire.org Git - thirdparty/nftables.git/commit
netfilter: support for element deletion
authorAnder Juaristi <a@juaristi.eus>
Tue, 9 Jul 2019 18:03:52 +0000 (20:03 +0200)
committerFlorian Westphal <fw@strlen.de>
Thu, 29 Aug 2019 09:10:47 +0000 (11:10 +0200)
commita87f2a2227be29cc1e91f3301cec963f02aa5178
tree9d0b62596a2f04e4cfcae8f6b09ce15590082ec7
parent03478af1bea03eafd43df94334cb001ed26145a3
netfilter: support for element deletion

This patch implements element deletion from ruleset.

Example:

table ip set-test {
set testset {
type ipv4_addr;
flags timeout;
}

chain outputchain {
policy accept;
type filter hook output priority filter;

delete @testset { ip saddr }
}
}

Signed-off-by: Ander Juaristi <a@juaristi.eus>
Signed-off-by: Florian Westphal <fw@strlen.de>
include/linux/netfilter/nf_tables.h
src/parser_bison.y
src/statement.c