netfilter: xtables: obtain random bytes earlier, in checkentry
authorJan Engelhardt <jengelh@medozas.de>
Mon, 4 Jan 2010 15:28:38 +0000 (16:28 +0100)
committerPatrick McHardy <kaber@trash.net>
Mon, 4 Jan 2010 15:28:38 +0000 (16:28 +0100)
commit294188ae32f984a072c64c959354b2f6f52f80a7
tree87e15911eebc0ef54375afc01aef3fd5efadd9c7
parent5191d50192ec1281e51cbcb5248cb2667ff4d896
netfilter: xtables: obtain random bytes earlier, in checkentry

We can initialize the random hash bytes on checkentry. This is
preferable since it is outside the hot path.

Reference: http://bugzilla.netfilter.org/show_bug.cgi?id=621
Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
Signed-off-by: Patrick McHardy <kaber@trash.net>
net/netfilter/xt_connlimit.c
net/netfilter/xt_recent.c