diff options
author | Guy Harris <guy@alum.mit.edu> | 2019-11-16 20:43:16 -0800 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2019-11-16 20:43:34 -0800 |
commit | bf0a7f8c86b95fc25a441cbc7969b4e2be2cbfaa (patch) | |
tree | 16a489b40307d888f40f1074c453beb3fd8b1069 /pcap.c | |
parent | 71fc9405b66ca1833f565bffff415e646e67d7cd (diff) |
Make "{un}synced with the system clock" a property of more time stamp types.
Define PCAP_TSTAMP_HOST_{LOW,HI}PREC as synced with the system clock;
add a new PCAP_TSTAMP_HOST_HIPREC_UNSYNCED type for high-precision time
stamps not necessarily synced with the system clock.
This should better match Npcap, including a proposed future "high
precision and synced with the system clock" time stamps for Npcap on
Windows 8 and later.
(This may still not match what FreeBSD offers, but at least it removes
an Npcap mismatch.)
Diffstat (limited to 'pcap.c')
-rw-r--r-- | pcap.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -3206,6 +3206,7 @@ static struct tstamp_type_choice tstamp_type_choices[] = { { "host_hiprec", "Host, high precision", PCAP_TSTAMP_HOST_HIPREC }, { "adapter", "Adapter", PCAP_TSTAMP_ADAPTER }, { "adapter_unsynced", "Adapter, not synced with system time", PCAP_TSTAMP_ADAPTER_UNSYNCED }, + { "host_hiprec_unsynced", "Host, high precision, not synced with system time", PCAP_TSTAMP_HOST_HIPREC_UNSYNCED }, { NULL, NULL, 0 } }; |