zephyr/subsys/net/lib/sockets
Marcin Niestroj 9f12dbba5d net: sockets: improve DGRAM recvfrom() on NET_OFFLOAD iface
When recvfrom() was called with src_addr != NULL, then source address
was fetched from beginning of net_pkt. This works with native IP stack
obviously. However with offloaded IP stack there is no IP header, so
trying to parse missing IP header results in undefined behavior.

Check if network interface has offloaded IP stack. If positive, then
figure out if there is assigned remote address to network context on
which packet was received. Return this remote address, which SHOULD be
the source address of received packet. Otherwise, return an error.

Signed-off-by: Marcin Niestroj <m.niestroj@emb.dev>
2021-03-17 20:00:42 +02:00
..
CMakeLists.txt net: sockets: tls: Add Kconfig option to disable offloaded TLS 2020-09-03 11:00:01 +03:00
getaddrinfo.c kernel: sem: add K_SEM_MAX_LIMIT 2021-03-05 08:13:53 -06:00
getnameinfo.c
Kconfig net: tls: use Maximum Fragment Length (MFL) extension by default 2020-11-05 14:47:24 +02:00
socket_offload.c
socketpair.c net: socketpair: Check NULL value 2020-08-14 09:47:51 -07:00
sockets_can.c net: socket send timeout option 2021-02-24 14:16:33 +02:00
sockets_internal.h net: sockets: Provide close method for packet sockets 2021-03-15 15:17:52 +02:00
sockets_misc.c
sockets_net_mgmt.c zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
sockets_packet.c net: sockets: Provide close method for packet sockets 2021-03-15 15:17:52 +02:00
sockets_select.c zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
sockets_tls.c net: sockets: tls: Implement MSG_WAITALL flag 2021-03-12 13:57:11 -05:00
sockets.c net: sockets: improve DGRAM recvfrom() on NET_OFFLOAD iface 2021-03-17 20:00:42 +02:00