]> git.baikalelectronics.ru Git - kernel.git/commit
[NETFILTER]: xt_hashlimit: fix mask calculation
authorPatrick McHardy <kaber@trash.net>
Wed, 9 Apr 2008 22:14:18 +0000 (15:14 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 9 Apr 2008 22:14:18 +0000 (15:14 -0700)
commit9f87167a690d8e920a3308c888c8337a87bce72e
treedad450564144193ea3591a491cc24665f4b22224
parent2159e7633891355ab29474eeb8a7a83593ae3ac1
[NETFILTER]: xt_hashlimit: fix mask calculation

Shifts larger than the data type are undefined, don't try to shift
an u32 by 32. Also remove some special-casing of bitmasks divisible
by 32.

Based on patch by Jan Engelhardt <jengelh@computergmbh.de>.

Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/netfilter/xt_hashlimit.c