Files
kernel_arpi/include/uapi/linux
Laura Garcia Liebana 3206caded8 netfilter: nft_hash: support of symmetric hash
This patch provides symmetric hash support according to source
ip address and port, and destination ip address and port.

For this purpose, the __skb_get_hash_symmetric() is used to
identify the flow as it uses FLOW_DISSECTOR_F_STOP_AT_FLOW_LABEL
flag by default.

The new attribute NFTA_HASH_TYPE has been included to support
different types of hashing functions. Currently supported
NFT_HASH_JENKINS through jhash and NFT_HASH_SYM through symhash.

The main difference between both types are:
 - jhash requires an expression with sreg, symhash doesn't.
 - symhash supports modulus and offset, but not seed.

Examples:

 nft add rule ip nat prerouting ct mark set jhash ip saddr mod 2
 nft add rule ip nat prerouting ct mark set symhash mod 2

By default, jenkins hash will be used if no hash type is
provided for compatibility reasons.

Signed-off-by: Laura Garcia Liebana <laura.garcia@zevenet.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
2017-03-06 17:57:42 +01:00
..
2017-01-05 13:02:25 +00:00
2016-11-29 09:00:30 +01:00
2017-01-10 14:05:11 -05:00
2017-02-03 15:16:45 -05:00
2017-01-17 14:38:43 -05:00
2017-02-20 11:13:37 -05:00
2017-02-09 15:17:30 +01:00
2017-02-09 22:59:34 -05:00
2017-02-15 11:56:07 -06:00
2017-02-17 12:08:05 -05:00
2017-02-20 11:13:37 -05:00
2017-01-09 16:07:38 -05:00
2017-01-29 19:17:23 -05:00
2017-01-10 18:31:55 -08:00
2016-12-16 00:13:38 +02:00
2016-12-16 00:13:32 +02:00