]> git.ipfire.org Git - thirdparty/nftables.git/commit
set: add timeout support for sets
authorPatrick McHardy <kaber@trash.net>
Mon, 23 Mar 2015 21:34:57 +0000 (21:34 +0000)
committerPatrick McHardy <kaber@trash.net>
Sun, 12 Apr 2015 18:59:27 +0000 (19:59 +0100)
commit38a077f7af8a2151b565e3cb324901b48afd299e
treefd119cd653996dbb421f2d0f8450d167bc213cbb
parent52532335290457cc449564b7e011f73bef3a83e2
set: add timeout support for sets

Timeout support can be enabled in one of two ways:

1. Using a default timeout value:

set test {
type ipv4_addr;
timeout 1h;
}

2. Using the timeout flag without a default:

set test {
type ipv4_addr;
flags timeout;
}

Optionally a garbage collection interval can be specified using

gc-interval <interval>;

Signed-off-by: Patrick McHardy <kaber@trash.net>
include/linux/netfilter/nf_tables.h
include/rule.h
src/evaluate.c
src/netlink.c
src/parser_bison.y
src/rule.c
src/scanner.l