diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/expression.h | 1 | ||||
-rw-r--r-- | include/hash.h | 3 | ||||
-rw-r--r-- | include/linux/netfilter/nf_tables.h | 2 |
3 files changed, 5 insertions, 1 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 */ 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 */ diff --git a/include/linux/netfilter/nf_tables.h b/include/linux/netfilter/nf_tables.h index c6567ace..0fb63fe0 100644 --- a/include/linux/netfilter/nf_tables.h +++ b/include/linux/netfilter/nf_tables.h @@ -773,6 +773,7 @@ enum nft_rt_keys { * @NFTA_HASH_LEN: source data length (NLA_U32) * @NFTA_HASH_MODULUS: modulus value (NLA_U32) * @NFTA_HASH_SEED: seed value (NLA_U32) + * @NFTA_HASH_OFFSET: offset value (NLA_U32) */ enum nft_hash_attributes { NFTA_HASH_UNSPEC, @@ -781,6 +782,7 @@ enum nft_hash_attributes { NFTA_HASH_LEN, NFTA_HASH_MODULUS, NFTA_HASH_SEED, + NFTA_HASH_OFFSET, __NFTA_HASH_MAX, }; #define NFTA_HASH_MAX (__NFTA_HASH_MAX - 1) |