From bb4b75aea5c002c940c2c08535f2e34f5ecf4257 Mon Sep 17 00:00:00 2001 From: Laura Garcia Liebana Date: Fri, 11 May 2018 00:15:41 +0200 Subject: 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 Signed-off-by: Pablo Neira Ayuso --- include/libnftnl/expr.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/libnftnl') 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 { -- cgit v1.2.3