]> granicus.if.org Git - ipset/commit
Fix adding ranges to hash types
authorJozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Fri, 6 May 2011 20:08:09 +0000 (22:08 +0200)
committerJozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Fri, 6 May 2011 20:08:09 +0000 (22:08 +0200)
commit32d1d2fa35c6ff61ce376f9f5eb734132599ff44
treece584314e7b447a903d1246abfabf7c1a64d339a
parent896447190b8ced40819cb91250db00bc38423bbf
Fix adding ranges to hash types

When ranges are added to hash types, the elements may trigger rehashing the set.
However, the last successfully added element was not kept track so the adding
started again with the first element after the rehashing. Bug reported by Mr Dash Four.
22 files changed:
kernel/include/linux/netfilter/ipset/ip_set.h
kernel/include/linux/netfilter/ipset/ip_set_ahash.h
kernel/net/netfilter/ipset/ip_set_bitmap_ip.c
kernel/net/netfilter/ipset/ip_set_bitmap_ipmac.c
kernel/net/netfilter/ipset/ip_set_bitmap_port.c
kernel/net/netfilter/ipset/ip_set_core.c
kernel/net/netfilter/ipset/ip_set_hash_ip.c
kernel/net/netfilter/ipset/ip_set_hash_ipport.c
kernel/net/netfilter/ipset/ip_set_hash_ipportip.c
kernel/net/netfilter/ipset/ip_set_hash_ipportnet.c
kernel/net/netfilter/ipset/ip_set_hash_net.c
kernel/net/netfilter/ipset/ip_set_hash_netport.c
kernel/net/netfilter/ipset/ip_set_list_set.c
tests/hash:ip,port,ip.t
tests/hash:ip,port,net.t
tests/hash:ip,port.t
tests/hash:ip.t
tests/hash:ip6,port,ip6.t
tests/hash:ip6,port,net6.t
tests/hash:ip6,port.t
tests/hash:net,port.t
tests/hash:net6,port.t