From 9bee0c86f1794c6c5418f256420758dc15d91f77 Mon Sep 17 00:00:00 2001 From: Laura Garcia Liebana Date: Fri, 4 Nov 2016 14:01:12 +0100 Subject: 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 Signed-off-by: Pablo Neira Ayuso --- include/hash.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include/hash.h') 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 */ -- cgit v1.2.3