-
Notifications
You must be signed in to change notification settings - Fork 478
Open
Description
When the socket set only contains a raw socket, all TCP connections will be reset by the code here:
smoltcp/src/iface/interface/tcp.rs
Lines 40 to 41 in e000f15
// The packet wasn't handled by a socket, send a TCP RST packet. | |
let (ip, tcp) = tcp::Socket::rst_reply(&ip_repr, &tcp_repr); |
However, when using a raw socket which can accept TCP, this is unlikely to be desired behaviour.
This code should probably be modified to check if any raw sockets are able to accept the packet before deciding whether to send an RST.
I'm happy to have a go at fixing this, let me know if this sounds unreasonable.
Metadata
Metadata
Assignees
Labels
No labels