syncookies: avoid magic values and document which-bit-is-what-option
authorFlorian Westphal <fw@strlen.de>
Mon, 3 Nov 2014 16:35:01 +0000 (17:35 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 4 Nov 2014 21:06:08 +0000 (16:06 -0500)
commit274e2da0ecb4d28e3d4e9f029b096e0e8c401a66
tree641b8c19c7f26efddc74839c5a0d0ed15e34de1b
parent436f7c206860729d543a457aca5887e52039a5f4
syncookies: avoid magic values and document which-bit-is-what-option

Was a bit more difficult to read than needed due to magic shifts;
add defines and document the used encoding scheme.

Joint work with Daniel Borkmann.

Acked-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/syncookies.c