mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-23 09:51:57 -05:00
Kernel: Ignore duplicate SYN packets
When receiving a SYN packet for a connection that's in the "SYN received" state we should ignore the duplicate SYN packet instead of closing the connection. This can happen when we didn't accept the connection in time and our peer has sent us another SYN packet because it thought that the initial SYN packet was lost.
This commit is contained in:
parent
3fc75088a2
commit
377b06c8ac
1 changed files with 3 additions and 0 deletions
|
@ -503,6 +503,9 @@ void handle_tcp(const IPv4Packet& ipv4_packet, const Time& packet_timestamp)
|
|||
return;
|
||||
}
|
||||
|
||||
return;
|
||||
case TCPFlags::SYN:
|
||||
dbgln("handle_tcp: ignoring SYN for partially established connection");
|
||||
return;
|
||||
default:
|
||||
dbgln("handle_tcp: unexpected flags in SynReceived state ({:x})", tcp_packet.flags());
|
||||
|
|
Loading…
Add table
Reference in a new issue