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> |
||
|---|---|---|
| .. | ||
| CMakeLists.txt | ||
| getaddrinfo.c | ||
| getnameinfo.c | ||
| Kconfig | ||
| socket_dispatcher.c | ||
| socket_obj_core.c | ||
| socket_offload.c | ||
| socketpair.c | ||
| sockets_can.c | ||
| sockets_internal.h | ||
| sockets_misc.c | ||
| sockets_net_mgmt.c | ||
| sockets_packet.c | ||
| sockets_select.c | ||
| sockets_service.c | ||
| sockets_tls.c | ||
| sockets.c | ||