]> The Tcpdump Group git mirrors - libpcap/commit
Clean up hardware time stamp support.
authorGuy Harris <[email protected]>
Fri, 13 May 2016 23:42:56 +0000 (16:42 -0700)
committerGuy Harris <[email protected]>
Fri, 13 May 2016 23:42:56 +0000 (16:42 -0700)
commitc119a71dd46d75e449ddc97e0b2fcfd3d51d1f61
tree946f9ee0de832eb417629ab664580b7f6e72e20e
parent50c4aac6d0d385fc8135f77432a8b1f80e828f5a
Clean up hardware time stamp support.

Don't say that the "any" device supports any time stamp types; we can't
arrange that every device, including devices that show up in the future,
do hardware time stamping.

If we can ask about hardware time stamp support, don't say we support
hardware time stamping if the answer is "not for all packets".

If we get ERANGE from an attempt to set hardware time stamping, it means
"yes, we support hardware time stamping, but not for all packets
matching that filter"; the filter in question is "all packets", so here
it would mean "we can't do hardware time stamping for all incoming
packets", which means "we can't do time stamping for captured packets".
pcap-linux.c