netfilter: nft_hash: Add hash offset value

Add support to pass through an offset to the hash value. With this
feature, the sysadmin is able to generate a hash with a given
offset value.

Example:

	meta mark set jhash ip saddr mod 2 seed 0xabcd offset 100

This option generates marks according to the source address from 100 to
101.

Signed-off-by: Laura Garcia Liebana <nevola@gmail.com>
This commit is contained in:
Laura Garcia Liebana 2016-09-06 08:44:19 +02:00 • committed by Pablo Neira Ayuso
commit 70ca767ea1
2 changed files with 15 additions and 4 deletions