]> git.ipfire.org Git - thirdparty/nftables.git/commit
src: enable set expiration date for set elements
authorLaura Garcia Liebana <nevola@gmail.com>
Mon, 17 Jun 2019 16:15:41 +0000 (18:15 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Fri, 28 Jun 2019 16:53:29 +0000 (18:53 +0200)
commit24f33c710e8ce2fa93573573409d428236c2f6cb
treed133d71cd7450607105c93dea2e2251ec788f5f0
parent2bb7528878c9571d629208d18acf338f2e7b2839
src: enable set expiration date for set elements

Currently, the expiration of every element in a set or map
is a read-only parameter generated at kernel side.

This change will permit to set a certain expiration date
per element that will be required, for example, during
stateful replication among several nodes.

This patch will enable the _expires_ input parameter in
the parser and propagate NFTNL_SET_ELEM_EXPIRATION in
order to send the configured value.

Signed-off-by: Laura Garcia Liebana <nevola@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
src/netlink.c
src/parser_bison.y
src/scanner.l