[PATCH] Enable retrieving of RTNET network packet timestamp OOB using recvmsg()

Jan Kiszka jan.kiszka at siemens.com
Wed May 12 16:08:03 CEST 2021

On 12.05.21 14:57, Fran├žois Legal via Xenomai wrote:
> This patch enables retrieving, in realtime application, of RTNET enabled adapters packet timestamps.
> It uses the linux semantic SO_TIMESTAMPNS, and the linux code to put the timestamp in the control_msg structure.

Thanks for the patch. Could you reformat according to kernel style

> I tested this patch with af_packet sockets only. UDP  & TCP might be a little bit trickier as many fragment/segments get reassembled in a single recvmsg. I believe the linux code I used to put the timestamps in the control structure should be OK though.

How does Linux resolve the case of stamping fragmented messages?


Siemens AG, T RDA IOT
Corporate Competence Center Embedded Linux

More information about the Xenomai mailing list