Linux kernel provides two socket options for retrieving software timestamps of incoming network packets: SO_TIMESTAMP and SO_TIMESTAMPING with
SO_TIMESTAMP
SO_TIMESTAMPING