netfilter: xt_hashlimit: Fix link error in 32bit arch because of 64bit division
authorVishwanath Pai <vpai@akamai.com>
Thu, 29 Sep 2016 17:39:50 +0000 (13:39 -0400)
committerPablo Neira Ayuso <pablo@netfilter.org>
Fri, 30 Sep 2016 18:15:27 +0000 (20:15 +0200)
commit1f827f5138292a6124430cdd37bcb68f30c05467
treed92e7dd1821e0976f6afbe5459333724ed04d396
parent7816ec564ec40ae20bb7925f733a181cad0cc491
netfilter: xt_hashlimit: Fix link error in 32bit arch because of 64bit division

Division of 64bit integers will cause linker error undefined reference
to `__udivdi3'. Fix this by replacing divisions with div64_64

Fixes: 11d5f15723c9 ("netfilter: xt_hashlimit: Create revision 2 to ...")
Signed-off-by: Vishwanath Pai <vpai@akamai.com>
Acked-by: Maciej Żenczykowski <maze@google.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/xt_hashlimit.c