tcp: Add tcp_validate_incoming & put duplicated code there
commitcbe2d128a01315fb4bd55b96cf8b963f5df28ea2
authorIlpo Järvinen <ilpo.jarvinen@helsinki.fi>
Sat, 23 Aug 2008 12:10:12 +0000 (23 05:10 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 23 Aug 2008 12:10:12 +0000 (23 05:10 -0700)
treef110e926a365da22bc2d63402b3d7f079a391dd0
parent23edcc4147ad36f8d55f0eb79c21e245ffb9f211
tcp: Add tcp_validate_incoming & put duplicated code there

Large block of code duplication removed.

Sadly, the return value thing is a bit tricky here but it
seems the most sensible way to return positive from validator
on success rather than negative.

Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@helsinki.fi>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/tcp_input.c