To access timestamp info you should first send message without any cmsg structure, and then extract it from socket error buffer using recvmsg call with MSG_ERRQUEUE flag specified https://docs.kernel.org/networking/timestamping.html#transmit-timestamps-with-msg-errqueue