diff options
author | Wei Yongjun <yjwei@cn.fujitsu.com> | 2009-06-25 00:29:31 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-06-26 05:03:15 +0200 |
commit | 1ac530b3553e0b4dc1e18a32bed57cfa84cd57cb (patch) | |
tree | cc0198945aeee7b60ea06c1699fc72268efc26f7 /net/ipv4/route.c | |
parent | atl1*: add device_set_wakeup_enable to atl1*_set_wol (diff) | |
download | linux-1ac530b3553e0b4dc1e18a32bed57cfa84cd57cb.tar.xz linux-1ac530b3553e0b4dc1e18a32bed57cfa84cd57cb.zip |
tcp: missing check ACK flag of received segment in FIN-WAIT-2 state
RFC0793 defined that in FIN-WAIT-2 state if the ACK bit is off drop
the segment and return[Page 72]. But this check is missing in function
tcp_timewait_state_process(). This cause the segment with FIN flag but
no ACK has two diffent action:
Case 1:
Node A Node B
<------------- FIN,ACK
(enter FIN-WAIT-1)
ACK ------------->
(enter FIN-WAIT-2)
FIN -------------> discard
(move sk to tw list)
Case 2:
Node A Node B
<------------- FIN,ACK
(enter FIN-WAIT-1)
ACK ------------->
(enter FIN-WAIT-2)
(move sk to tw list)
FIN ------------->
<------------- ACK
This patch fixed the problem.
Signed-off-by: Wei Yongjun <yjwei@cn.fujitsu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/route.c')
0 files changed, 0 insertions, 0 deletions