]> git.meshlink.io Git - meshlink/commit
Send RST packets when receiving data after we closed a UDP channel.
authorGuus Sliepen <guus@meshlink.io>
Tue, 29 Sep 2020 20:38:55 +0000 (22:38 +0200)
committerGuus Sliepen <guus@meshlink.io>
Tue, 29 Sep 2020 20:38:55 +0000 (22:38 +0200)
commit1a023116b9d5e9a8fa93e81fcef725fd7b343593
tree9009e43b181b4fc06ba01d5320b280e0bee93683
parent819884b6a5c5dc5514df2bfed6725e72c4eac840
Send RST packets when receiving data after we closed a UDP channel.

If the application closed a channel, we keep the UTCP connection alive for
a bit longer to handle resends of FIN packets. However, if this is missed
for some reason, either because the FIN got lost or the peer ignored the
receive callback, and the peer is sending new data, we need to inform it
that we are no longer listening. To do this, send a RST back.
src/utcp.c