syncookies: avoid magic values and document which-bit-is-what-option
authorFlorian Westphal <[email protected]>
Mon, 3 Nov 2014 16:35:01 +0000 (17:35 +0100)
committerDavid S. Miller <[email protected]>
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 <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>
Signed-off-by: Florian Westphal <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
net/ipv4/syncookies.c