projects
/
GitHub
/
LineageOS
/
android_kernel_samsung_universal7580.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9c13886
)
netfilter: xt_hashlimit: IPV6 bugfix
author
Eric Dumazet
<eric.dumazet@gmail.com>
Thu, 25 Mar 2010 16:25:11 +0000
(17:25 +0100)
committer
Patrick McHardy
<kaber@trash.net>
Thu, 25 Mar 2010 16:25:11 +0000
(17:25 +0100)
A missing break statement in hashlimit_ipv6_mask(), and masks
between /64 and /95 are not working at all...
Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: Patrick McHardy <kaber@trash.net>
net/netfilter/xt_hashlimit.c
patch
|
blob
|
blame
|
history
diff --git
a/net/netfilter/xt_hashlimit.c
b/net/netfilter/xt_hashlimit.c
index 70d561a2d9e0d0ef98da7d1699ff7609d6b672bd..215a64835de82748af7db9682ba69aa3104fde39 100644
(file)
--- a/
net/netfilter/xt_hashlimit.c
+++ b/
net/netfilter/xt_hashlimit.c
@@
-493,6
+493,7
@@
static void hashlimit_ipv6_mask(__be32 *i, unsigned int p)
case 64 ... 95:
i[2] = maskl(i[2], p - 64);
i[3] = 0;
+ break;
case 96 ... 127:
i[3] = maskl(i[3], p - 96);
break;