smoltcp icon indicating copy to clipboard operation
smoltcp copied to clipboard

udp, icmp, raw socket can_recv() doesn't take into account buffer padidng.

Open Dirbaio opened this issue 4 months ago • 0 comments

in sockets using PacketBuffer (udp, icmp, raw) the receive path calls dequeue_padding() before doing the actual recieve. However, can_recv() doesn't do so, which means it's possible it returns true but then actually trying to receive yields no received data.

Dirbaio avatar Oct 21 '24 00:10 Dirbaio