diff options
author | Laura Garcia Liebana <nevola@gmail.com> | 2016-11-04 14:01:12 +0100 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2016-11-09 00:21:39 +0100 |
commit | 9bee0c86f1794c6c5418f256420758dc15d91f77 (patch) | |
tree | df1290b54bff6323a62dcc14e3bd83422e1cd123 /include/hash.h | |
parent | 7f027e82d7a21f8b088bcc7c838774071e79b89b (diff) |
src: add offset attribute for hash expression
Add support to add an offset to the hash generator, eg.
ct mark set hash ip saddr mod 10 offset 100
This will generate marks with series between 100-109.
Signed-off-by: Laura Garcia Liebana <nevola@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include/hash.h')
-rw-r--r-- | include/hash.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/hash.h b/include/hash.h index bc8c86af..8bf53e2e 100644 --- a/include/hash.h +++ b/include/hash.h @@ -2,6 +2,7 @@ #define NFTABLES_HASH_H extern struct expr *hash_expr_alloc(const struct location *loc, - uint32_t modulus, uint32_t seed); + uint32_t modulus, uint32_t seed, + uint32_t offset); #endif /* NFTABLES_HASH_H */ |