zephyr/subsys/net/lib/sockets
Adam Wojasinski ee06da545d net: socket: Add SO_TIMESTAMPING data to messages received via socket
Add returning timestamp of received packet in ancillary data buffer
in `msghdr` structure. This commit enables getting timestamp of
the received packet by calling `recvmsg()` function. The function
returns in the `msg_control` field timestamp if following criteria
are met:
- `CONFIG_NET_CONTEXT_TIMESTAMPING` is set
- `SO_TIMESTAMPING` socket option has `SOF_TIMESTAMPING_RX_HARDWARE`
  option enabled for that socket
- driver used by sockets supports packet timestamping

Signed-off-by: Adam Wojasinski <awojasinski@baylibre.com>
2024-06-13 05:40:41 -04:00
..
CMakeLists.txt net: sockets: Create a socket service API 2024-01-16 10:00:45 +01:00
getaddrinfo.c build: namespace the generated headers with zephyr/ 2024-05-28 22:03:55 +02:00
getnameinfo.c
Kconfig net: add proper PSA_WANT kconfigs for TLS sockets and RSA key exchanges 2024-06-13 09:22:20 +02:00
socket_dispatcher.c
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 net: tracing: Add socket tracing support 2024-06-10 15:03:20 -05:00
sockets_can.c net: Use always zephyr/posix/fcntl.h 2024-03-27 13:40:13 -05: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 net: Use always zephyr/posix/fcntl.h 2024-03-27 13:40:13 -05:00
sockets_packet.c net: socket: Change the protocol field for AF_PACKET sockets 2024-05-29 10:48:34 -07:00
sockets_select.c build: namespace the generated headers with zephyr/ 2024-05-28 22:03:55 +02:00
sockets_service.c posix: eventfd: fix dependency cycle between net and posix 2024-06-04 16:27:12 -05:00
sockets_tls.c net: sockets: tls: Add more logging in case of errors 2024-04-12 11:54:02 +02:00
sockets.c net: socket: Add SO_TIMESTAMPING data to messages received via socket 2024-06-13 05:40:41 -04:00