diff options
author | Patrick McHardy <kaber@trash.net> | 2015-04-11 05:46:39 -0400 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2015-04-13 14:12:31 -0400 |
commit | f25ad2e907f110378159fe5e088aa13176faaa5b (patch) | |
tree | 9f3f8353dc536847f3d95cc58cbc0d9ae183fe0c /include/uapi | |
parent | 0b2d8a7b638b5034d2d68f6add8af94daaa1d4cd (diff) |
netfilter: nf_tables: prepare for expressions associated to set elements
Preparation to attach expressions to set elements: add a set extension
type to hold an expression and dump the expression information with the
set element.
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include/uapi')
-rw-r--r-- | include/uapi/linux/netfilter/nf_tables.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/uapi/linux/netfilter/nf_tables.h b/include/uapi/linux/netfilter/nf_tables.h index be8584c95297..f9c5af22a6af 100644 --- a/include/uapi/linux/netfilter/nf_tables.h +++ b/include/uapi/linux/netfilter/nf_tables.h | |||
@@ -322,6 +322,7 @@ enum nft_set_elem_flags { | |||
322 | * @NFTA_SET_ELEM_TIMEOUT: timeout value (NLA_U64) | 322 | * @NFTA_SET_ELEM_TIMEOUT: timeout value (NLA_U64) |
323 | * @NFTA_SET_ELEM_EXPIRATION: expiration time (NLA_U64) | 323 | * @NFTA_SET_ELEM_EXPIRATION: expiration time (NLA_U64) |
324 | * @NFTA_SET_ELEM_USERDATA: user data (NLA_BINARY) | 324 | * @NFTA_SET_ELEM_USERDATA: user data (NLA_BINARY) |
325 | * @NFTA_SET_ELEM_EXPR: expression (NLA_NESTED: nft_expr_attributes) | ||
325 | */ | 326 | */ |
326 | enum nft_set_elem_attributes { | 327 | enum nft_set_elem_attributes { |
327 | NFTA_SET_ELEM_UNSPEC, | 328 | NFTA_SET_ELEM_UNSPEC, |
@@ -331,6 +332,7 @@ enum nft_set_elem_attributes { | |||
331 | NFTA_SET_ELEM_TIMEOUT, | 332 | NFTA_SET_ELEM_TIMEOUT, |
332 | NFTA_SET_ELEM_EXPIRATION, | 333 | NFTA_SET_ELEM_EXPIRATION, |
333 | NFTA_SET_ELEM_USERDATA, | 334 | NFTA_SET_ELEM_USERDATA, |
335 | NFTA_SET_ELEM_EXPR, | ||
334 | __NFTA_SET_ELEM_MAX | 336 | __NFTA_SET_ELEM_MAX |
335 | }; | 337 | }; |
336 | #define NFTA_SET_ELEM_MAX (__NFTA_SET_ELEM_MAX - 1) | 338 | #define NFTA_SET_ELEM_MAX (__NFTA_SET_ELEM_MAX - 1) |