HomeFreeBSD

linux(4): Handle SO_TIMESTAMPNS socket option

Description

linux(4): Handle SO_TIMESTAMPNS socket option

The SO_TIMESTAMPNS enables or disables the receiving of the SCM_TIMESTAMPNS
control message. The cmsg_data field is a struct timespec.
To distinguish between SO_TIMESTAMP and SO_TIMESTAMPNS in the recvmsg()
map the last one to the SO_BINTIME and convert bintime to the timespec.
In the rest, implementation is identical to the SO_TIMESTAMP.

MFC after: 2 weeks

Details

Provenance
dchaginAuthored on May 28 2022, 8:46 PM
Parents
rG0e26e54bdfa2: linux(4): Handle 64-bit SO_TIMESTAMP for 32-bit binaries
Branches
Unknown
Tags
Unknown