Kernel: Fix TCP closing state machine
This commit is contained in:
parent
5305f962c0
commit
1c44d24b76
|
@ -531,9 +531,9 @@ namespace Kernel
|
||||||
break;
|
break;
|
||||||
if ((header.flags & (FIN | ACK)) == (FIN | ACK))
|
if ((header.flags & (FIN | ACK)) == (FIN | ACK))
|
||||||
m_next_state = State::TimeWait;
|
m_next_state = State::TimeWait;
|
||||||
if (header.flags & FIN)
|
else if (header.flags & FIN)
|
||||||
m_next_state = State::Closing;
|
m_next_state = State::Closing;
|
||||||
if (header.flags & ACK)
|
else if (header.flags & ACK)
|
||||||
m_state = State::FinWait2;
|
m_state = State::FinWait2;
|
||||||
else
|
else
|
||||||
m_next_flags = ACK;
|
m_next_flags = ACK;
|
||||||
|
|
Loading…
Reference in New Issue