]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5ea0b5743e1dd50b6f2b701a1bebf2edbaba9a26
tree641b8c19c7f26efddc74839c5a0d0ed15e34de1b
parentd58a0268c402d789a3e14b302036674c75d61fab
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