]> git.baikalelectronics.ru Git - kernel.git/commit
tcp: Add tcp_validate_incoming & put duplicated code there
authorIlpo Järvinen <ilpo.jarvinen@helsinki.fi>
Sat, 23 Aug 2008 12:10:12 +0000 (05:10 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 23 Aug 2008 12:10:12 +0000 (05:10 -0700)
commitda007add92ff553f28d2d7e8f9f33c1faa37e118
treef110e926a365da22bc2d63402b3d7f079a391dd0
parent9cd5912e63ce98400a568f57af2b84b724afdfd9
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