mirror of
https://git.netfilter.org/nftables
synced 2026-01-26 18:39:03 +00:00
Typing the "nft add rule x y ct mark set jhash ip saddr mod 2" will not generate a random seed, instead, the seed will always be zero. So if seed option is empty, we shoulde not set the NFTA_HASH_SEED attribute, then a random seed will be generated in the kernel. Signed-off-by: Liping Zhang <zlpnobody@gmail.com> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
11 lines
267 B
C
11 lines
267 B
C
#ifndef NFTABLES_HASH_H
|
|
#define NFTABLES_HASH_H
|
|
|
|
extern struct expr *hash_expr_alloc(const struct location *loc,
|
|
uint32_t modulus,
|
|
bool seed_set, uint32_t seed,
|
|
uint32_t offset,
|
|
enum nft_hash_types type);
|
|
|
|
#endif /* NFTABLES_HASH_H */
|