commit | 28b1d6ef53e3303b90ca8924bb78f31fa527cafb | [log] [tgz] |
---|---|---|
author | Laura Garcia Liebana <nevola@gmail.com> | Mon Jul 15 13:23:37 2019 +0200 |
committer | Pablo Neira Ayuso <pablo@netfilter.org> | Tue Jul 16 13:17:03 2019 +0200 |
tree | 6ee9c1f3988d66733dd8d9451748dee603d8a99e | |
parent | b717273ddb66a0c576d8c9884a6cfa70a5f49f6b [diff] |
netfilter: nft_hash: fix symhash with modulus one The rule below doesn't work as the kernel raises -ERANGE. nft add rule netdev nftlb lb01 ip daddr set \ symhash mod 1 map { 0 : 192.168.0.10 } fwd to "eth0" This patch allows to use the symhash modulus with one element, in the same way that the other types of hashes and algorithms that uses the modulus parameter. Signed-off-by: Laura Garcia Liebana <nevola@gmail.com> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>