diff options
author | Laura Garcia Liebana <nevola@gmail.com> | 2016-09-05 10:55:03 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2016-09-12 20:30:52 +0200 |
commit | 5877cc62d9bd1c7183992a2d05dd82d17ed12097 (patch) | |
tree | 97ba14e4c844bc7287d2115074be776c6a46cbeb /include/libnftnl/expr.h | |
parent | 3e885741cdc3498300419540333d9da43faa08f4 (diff) |
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 <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.h | 1 |
1 files changed, 1 insertions, 0 deletions
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, }; /* |