]> The Tcpdump Group git mirrors - libpcap/commit
Always return a list of supported time-stamp types.
authorGuy Harris <[email protected]>
Sun, 8 Sep 2019 22:25:48 +0000 (15:25 -0700)
committerGuy Harris <[email protected]>
Sun, 8 Sep 2019 22:26:06 +0000 (15:26 -0700)
commit550c4d8f372663d1b6617cad2279a1eca7cc58df
treee083d7bd3d8ea955a6b97aa96cbdb001624249c1
parentf731fa7ef793fe116f938434db361aedf4aa9314
Always return a list of supported time-stamp types.

In change 6e0c54a8f9640973e95ae755e6f60e1cceb7985f, we "have both the
time stamp type-setting and precision-setting routines allow the default
value (PCAP_TSTAMP_NONE/PCAP_TSTAMP_PRECISION_MICRO) if no list is
supplied."  That means that, for example, "tcpdump -J" may report "Time
stamp type cannot be set", but "tcpdump -j host" is allowed.  One could
argue that you're not "setting" the time stamp, as "host" is the
default, but it's confusing.

This means that "host" will be reported as the one and only time stamp
type if that's supported.
pcap.c
pcap_list_tstamp_types.3pcap.in
pcap_set_tstamp_type.3pcap.in