]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit - include/uapi/linux/netfilter/nf_tables.h
netfilter: nft_hash: Add hash offset value
authorLaura Garcia Liebana <nevola@gmail.com>
Tue, 6 Sep 2016 06:44:19 +0000 (08:44 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 12 Sep 2016 16:37:12 +0000 (18:37 +0200)
commit70ca767ea1b2748f45e96192400e515dddbe517c
tree8888737ffc4c3ad54156568184c646318bed2a2f
parent3c15b8e112d7351b2586c649a759318548523364
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>
include/uapi/linux/netfilter/nf_tables.h
net/netfilter/nft_hash.c