Skip to content
Commit c00fdcb5 authored by Marcin Niestroj's avatar Marcin Niestroj Committed by Carles Cufí
Browse files

net: context: prevent truncating outgoing datagrams



Datagrams should either be fully sent or not sent at all if networking
buffers or network interface MTU does not allow that. So far the behavior
was to truncate outgoing packets, even for datagram sockets.

When there is not enough available payload buffer to fit all requested
data, fail if that happens for datagram socket.

Signed-off-by: default avatarMarcin Niestroj <m.niestroj@emb.dev>
parent eb710039
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment