summaryrefslogtreecommitdiffstats
path: root/include/libnftnl/expr.h
diff options
context:
space:
mode:
authorLaura Garcia Liebana <nevola@gmail.com>2018-05-11 00:15:41 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2018-05-23 09:39:32 +0200
commitbb4b75aea5c002c940c2c08535f2e34f5ecf4257 (patch)
treec5fe9af6b1641ad1270181fbc329b4879dd50289 /include/libnftnl/expr.h
parent645036caa805d8189f0afeb5219b856dea5156f5 (diff)
expr: add map lookups for hash statements
This patch introduces two new attributes for hash expression to allow map lookups where the hash is the key. The new attributes are NFTNL_EXPR_HASH_SET_NAME and NFTNL_EXPR_HASH_SET_ID in order to identify the given map. Signed-off-by: Laura Garcia Liebana <nevola@gmail.com> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include/libnftnl/expr.h')
-rw-r--r--include/libnftnl/expr.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/libnftnl/expr.h b/include/libnftnl/expr.h
index 25d4103..45ff533 100644
--- a/include/libnftnl/expr.h
+++ b/include/libnftnl/expr.h
@@ -238,6 +238,8 @@ enum {
NFTNL_EXPR_HASH_SEED,
NFTNL_EXPR_HASH_OFFSET,
NFTNL_EXPR_HASH_TYPE,
+ NFTNL_EXPR_HASH_SET_NAME,
+ NFTNL_EXPR_HASH_SET_ID,
};
enum {