]> git.ipfire.org Git - thirdparty/ipset.git/commit
Fix adding an IPv4 range containing more than 2^31 addresses
authorJozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Mon, 18 Sep 2017 19:43:30 +0000 (21:43 +0200)
committerJozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Mon, 18 Sep 2017 19:43:30 +0000 (21:43 +0200)
commitae810f58cbfd08a654877f7f78239526e1caf117
tree8ab7319b66b3a4c2b693b89602bef28e753de887
parent7aa278e4c474adfac06ddb35584b31534366628f
Fix adding an IPv4 range containing more than 2^31 addresses

Wrong comparison prevented the hash types to add a range with
more than 2^31 addresses but reported as a success.

Fixes bugzilla id #1005, reported by Oleg Serditov and Oliver Ford.
kernel/net/netfilter/ipset/ip_set_hash_ip.c
kernel/net/netfilter/ipset/ip_set_hash_ipmark.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_netiface.c
kernel/net/netfilter/ipset/ip_set_hash_netnet.c
kernel/net/netfilter/ipset/ip_set_hash_netport.c
kernel/net/netfilter/ipset/ip_set_hash_netportnet.c