path: root/include/expression.h
diff options
authorPatrick McHardy <>2015-03-19 13:34:18 +0000
committerPatrick McHardy <>2015-04-12 19:59:27 +0100
commit7b5248972d9f2122c7b3683ca205d3165e7a9255 (patch)
tree619a70e2ddf2d56eae85040f4217705239726e67 /include/expression.h
parent38a077f7af8a2151b565e3cb324901b48afd299e (diff)
setelem: add timeout support for set elements
Support specifying per element timeout values and displaying the expiration time. If an element should not use the default timeout value of the set, an element specific value can be specified as follows: # nft add element filter test {, timeout 10m} For listing of elements that use the default timeout value, just the expiration time is shown, otherwise the element specific timeout value is also displayed: set test { type ipv4_addr timeout 1h elements = { timeout 10m expires 9m59s, expires 59m59s} } Signed-off-by: Patrick McHardy <>
Diffstat (limited to 'include/expression.h')
1 files changed, 2 insertions, 0 deletions
diff --git a/include/expression.h b/include/expression.h
index d481f288..6f23b6dd 100644
--- a/include/expression.h
+++ b/include/expression.h
@@ -234,6 +234,8 @@ struct expr {
struct {
struct expr *key;
+ uint64_t timeout;
+ uint64_t expiration;
struct {