From 5877cc62d9bd1c7183992a2d05dd82d17ed12097 Mon Sep 17 00:00:00 2001 From: Laura Garcia Liebana Date: Mon, 5 Sep 2016 10:55:03 +0200 Subject: expr: hash: Add offset to hash value Add support to pass through an offset to the hash value. With this feature, the sysadmin is able to generate a hash with a given started value. Example: meta mark set jhash ip saddr mod 2 seed 0xabcd offset 100 This option generates marks according to the source address from 100 to 101. Signed-off-by: Laura Garcia Liebana Signed-off-by: Pablo Neira Ayuso --- include/libnftnl/expr.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/libnftnl/expr.h') diff --git a/include/libnftnl/expr.h b/include/libnftnl/expr.h index 94ce529..8b35203 100644 --- a/include/libnftnl/expr.h +++ b/include/libnftnl/expr.h @@ -210,6 +210,7 @@ enum { NFTNL_EXPR_HASH_LEN, NFTNL_EXPR_HASH_MODULUS, NFTNL_EXPR_HASH_SEED, + NFTNL_EXPR_HASH_OFFSET, }; /* -- cgit v1.2.3