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/expression.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/expression.h')
-rw-r--r-- | include/expression.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/expression.h b/include/expression.h index 3a52a45c..71e9c43e 100644 --- a/include/expression.h +++ b/include/expression.h @@ -307,6 +307,7 @@ struct expr { struct expr *expr; uint32_t mod; uint32_t seed; + uint32_t offset; } hash; struct { /* EXPR_FIB */ |