zephyr/subsys/net/lib
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
..
coap net: coap: acknowledgement initialization helper 2021-02-15 10:17:11 +02:00
config logging: Add backend parameter to the init function 2021-03-12 09:24:54 -05:00
conn_mgr kernel: sem: add K_SEM_MAX_LIMIT 2021-03-05 08:13:53 -06:00
dns net: dns: update to new k_work API 2021-03-15 17:19:54 +02:00
http license: add missing SPDX headers 2021-02-11 08:05:16 -05:00
lwm2m net: lwm2m: Make validation cb support optional 2021-03-10 14:55:22 -05:00
mqtt net: mqtt: log struct mqtt_utf8 with hexdump 2021-03-05 12:49:22 +02:00
openthread net: openthread: Fix otPlatUartSend 2021-03-15 13:46:36 +02:00
sntp net: sntp: Remove deprecated API function 2020-10-01 07:14:08 -05:00
sockets net: sockets: improve DGRAM recvfrom() on NET_OFFLOAD iface 2021-03-17 20:00:42 +02:00
socks
tftp
tls_credentials device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
utils
websocket kernel: sem: add K_SEM_MAX_LIMIT 2021-03-05 08:13:53 -06:00
CMakeLists.txt net: openthread: Align Kconfig with cmake symbols 2020-08-18 15:57:14 +03:00
Kconfig