[riot-notifications] [RIOT-OS/RIOT] sock_udp_send() reports success even though the message was never sent (#11551)

benpicco notifications at github.com
Thu Jun 6 19:44:22 CEST 2019


At the very least the documentation should be updated.
The way I read the description of [`sock_udp_send`](https://riot-os.org/api/group__net__sock__udp.html#ga89562920ad89fe0e098fc989e3b064ec), when `size` is returned, those bytes have been successfully written to the network/ether/left the device in the intended way.

For the case that the destination is unknown and the packet was therefore dropped without being written to the network, I would have expected to get `-EHOSTUNREACH`.


-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/issues/11551#issuecomment-499597048
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190606/46ac427d/attachment.html>


More information about the notifications mailing list