zephyr/subsys/net/lib/sockets
Axel Le Bourhis 5d643f4b00 net: sockets: Update msg_controllen in recvmsg properly
According to recvmsg man page, msg_controllen should be set to the sum
of the length of all control messages in the buffer.
This is missing from the current recvmsg implementation.
This commit aims to fix this by updating msg_controllen each time control
data are added to the buffer.
This commit also fixes cases where the msg_controllen is cleared
incorrectly.

Fixes #77303

Signed-off-by: Axel Le Bourhis <axel.lebourhis@nxp.com>
2024-08-23 15:50:37 +01:00
..
CMakeLists.txt Revert "net: sockets: move select() implementation to zvfs" 2024-07-03 15:03:05 -04:00
getaddrinfo.c build: namespace the generated headers with zephyr/ 2024-05-28 22:03:55 +02:00
getnameinfo.c
Kconfig kconfig: replace known integer constants with variables 2024-07-27 20:49:15 +03:00
socket_dispatcher.c fdtable: replace z_ prefix with zvfs_ for fdtable.h functions 2024-06-26 12:33:02 +02:00
socket_obj_core.c posix: deprecate POSIX_MAX_FDS and add POSIX_DEVICE_IO 2024-06-04 16:27:12 -05:00
socket_offload.c
socketpair.c fdtable: replace z_ prefix with zvfs_ for fdtable.h functions 2024-06-26 12:33:02 +02:00
sockets_can.c fdtable: replace z_ prefix with zvfs_ for fdtable.h functions 2024-06-26 12:33:02 +02:00
sockets_internal.h net: sockets: Refactor accept() to support objcore better 2024-01-17 09:55:40 +01:00
sockets_misc.c build: namespace the generated headers with zephyr/ 2024-05-28 22:03:55 +02:00
sockets_net_mgmt.c fdtable: replace z_ prefix with zvfs_ for fdtable.h functions 2024-06-26 12:33:02 +02:00
sockets_packet.c net: tracing: Add TX time tracing 2024-08-19 21:50:21 -04:00
sockets_select.c Revert "net: sockets: move select() implementation to zvfs" 2024-07-03 15:03:05 -04:00
sockets_service.c net: sockets: Remove async service support 2024-07-10 11:36:59 +02:00
sockets_tls.c net: sockets: tls: Fix poll update event check 2024-07-27 15:13:17 +03:00
sockets.c net: sockets: Update msg_controllen in recvmsg properly 2024-08-23 15:50:37 +01:00