]> git.ipfire.org Git - thirdparty/ipset.git/commit
64bit division isn't allowed on 32bit, replace it with shift
authorJozsef Kadlecsik <kadlec@netfilter.org>
Wed, 28 Jul 2021 14:06:46 +0000 (16:06 +0200)
committerJozsef Kadlecsik <kadlec@netfilter.org>
Wed, 28 Jul 2021 14:09:01 +0000 (16:09 +0200)
commit73e5366e2295f009da5ac3fd608dfe8464c795d3
tree039be16b08e4efcbc7e2fce26a26e02dfceceeca
parent8a0df0c759cf9f0ca6f0cfa512ebf4832fd73729
64bit division isn't allowed on 32bit, replace it with shift

The number of hosts in a netblock must be a power of two,
so use shift instead of division.

Signed-off-by: Jozsef Kadlecsik <kadlec@netfilter.org>
kernel/net/netfilter/ipset/ip_set_hash_ip.c