On the send side there’s not a lot you can do; there’s no equivalent of
SO_TIMESTAMP
on the send side.
/sbin/ping solves the problem by calling gettimeofday() and putting the result into the data field of the outgoing packet, because as of RFC 792 the Echo Reply packet has to contain the data field from the Echo Request.
Topic:
App & System Services
SubTopic:
Networking
Tags: