]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: ipset: hash:*net*: nomatch flag not excluded on set resize
authorJozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Tue, 9 Apr 2013 08:57:20 +0000 (08:57 +0000)
committerPablo Neira Ayuso <pablo@netfilter.org>
Tue, 9 Apr 2013 19:04:16 +0000 (21:04 +0200)
commit237e86048c3d2ec01a16f6921f9cdbb9dbbf3092
treeb1a7a2ef0b8ec7771722beb75187199c04f31ebe
parent67ee2c336ff745c0aa9443934a6a2008ff4b7b0b
netfilter: ipset: hash:*net*: nomatch flag not excluded on set resize

If a resize is triggered the nomatch flag is not excluded at hashing,
which leads to the element missed at lookup in the resized set.

Signed-off-by: Jozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
include/linux/netfilter/ipset/ip_set_ahash.h
net/netfilter/ipset/ip_set_hash_ipportnet.c
net/netfilter/ipset/ip_set_hash_net.c
net/netfilter/ipset/ip_set_hash_netiface.c
net/netfilter/ipset/ip_set_hash_netport.c