net: tcp: RST handling is weak #4420
Labels
area: Networking
Enhancement
Changes/Updates/Additions to existing features
priority: low
Low impact/importance bug
RFC793 has a repeating closes like:
(p.36 of https://tools.ietf.org/html/rfc793)
Zephyr's net_tcp_prepare_reset() doesn't take a reference pkt from which it could extract ackno for the above. That means that it won't generate proper RST which would be accepted by a peer, which means that peer can remain confused for extended time about Zephyr's state. For example, if Zephyr and peer was connected, then Zephyr resets, and peer trying to send data on old connection, then Zephyr's RST won't be valid. That's of course if RST is generated by Zephyr at all - I have a feeling that we don't handle all RST cases.
The text was updated successfully, but these errors were encountered: