diff options
Diffstat (limited to 'net/ipv4/syncookies.c')
-rw-r--r-- | net/ipv4/syncookies.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ipv4/syncookies.c b/net/ipv4/syncookies.c index 4704f27f6c0b..abc752d45cf7 100644 --- a/net/ipv4/syncookies.c +++ b/net/ipv4/syncookies.c | |||
@@ -21,7 +21,7 @@ | |||
21 | 21 | ||
22 | extern int sysctl_tcp_syncookies; | 22 | extern int sysctl_tcp_syncookies; |
23 | 23 | ||
24 | __u32 syncookie_secret[2][16-3+SHA_DIGEST_WORDS]; | 24 | __u32 syncookie_secret[2][16-4+SHA_DIGEST_WORDS]; |
25 | EXPORT_SYMBOL(syncookie_secret); | 25 | EXPORT_SYMBOL(syncookie_secret); |
26 | 26 | ||
27 | static __init int init_syncookies(void) | 27 | static __init int init_syncookies(void) |
@@ -41,7 +41,7 @@ static u32 cookie_hash(__be32 saddr, __be32 daddr, __be16 sport, __be16 dport, | |||
41 | { | 41 | { |
42 | __u32 *tmp = __get_cpu_var(cookie_scratch); | 42 | __u32 *tmp = __get_cpu_var(cookie_scratch); |
43 | 43 | ||
44 | memcpy(tmp + 3, syncookie_secret[c], sizeof(syncookie_secret[c])); | 44 | memcpy(tmp + 4, syncookie_secret[c], sizeof(syncookie_secret[c])); |
45 | tmp[0] = (__force u32)saddr; | 45 | tmp[0] = (__force u32)saddr; |
46 | tmp[1] = (__force u32)daddr; | 46 | tmp[1] = (__force u32)daddr; |
47 | tmp[2] = ((__force u32)sport << 16) + (__force u32)dport; | 47 | tmp[2] = ((__force u32)sport << 16) + (__force u32)dport; |