]> err.no Git - linux-2.6/commit
[TCP]: Shrink syncookie_secret by 8 byte.
authorFlorian Westphal <fw@strlen.de>
Mon, 24 Mar 2008 05:21:28 +0000 (22:21 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 24 Mar 2008 05:21:28 +0000 (22:21 -0700)
commit2051f11fb86b0056fec440fe7e9fa8370d60a5c6
treee93befbb8fb6590994b51aa213bf9596c0070bc1
parent310afe86af8ddd96a06b75aa61ef1af233f80e89
[TCP]: Shrink syncookie_secret by 8 byte.

the first u32 copied from syncookie_secret is overwritten by the
minute-counter four lines below.  After adjusting the destination
address, the size of syncookie_secret can be reduced accordingly.

AFAICS, the only other user of syncookie_secret[] is the ipv6
syncookie support.  Because ipv6 syncookies only grab 44 bytes from
syncookie_secret[], this shouldn't affect them in any way.

With fixes from Glenn Griffin.

Signed-off-by: Florian Westphal <fw@strlen.de>
Acked-by: Glenn Griffin <ggriffin.kernel@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/tcp.h
net/ipv4/syncookies.c
net/ipv6/syncookies.c