dect
/
libpcap
Archived
13
0
Fork 0

Give the names, as well as the #defines, for time stamp types.

This commit is contained in:
Guy Harris 2010-08-23 15:36:30 -07:00
parent 00f5d74bb9
commit 7f1c9ba7ad
1 changed files with 13 additions and 7 deletions

View File

@ -91,36 +91,42 @@ routine can be used after a
call and before a call and before a
.B pcap_activate() .B pcap_activate()
call to specify the type of time stamp to be used on the device. call to specify the type of time stamp to be used on the device.
The time stamp types are: The time stamp types are listed here; the first value is the #define to
use in code, the second value is the value returned by
.B pcap_tstamp_type_val_to_name()
and accepted by
.BR pcap_tstamp_name_to_val() .
.RS 5 .RS 5
.TP 5 .TP 5
.BR PCAP_TSTAMP_HOST .BR PCAP_TSTAMP_HOST " - " host
Time stamp provided by the host on which the capture is being done. The Time stamp provided by the host on which the capture is being done. The
precision of this time stamp is unspecified; it might or might not be precision of this time stamp is unspecified; it might or might not be
synchronized with the host operating system's clock. synchronized with the host operating system's clock.
.TP 5 .TP 5
.BR PCAP_TSTAMP_HOST_LOWPREC .BR PCAP_TSTAMP_HOST_LOWPREC " - " host_lowprec
Time stamp provided by the host on which the capture is being done. Time stamp provided by the host on which the capture is being done.
This is a low-precision time stamp, synchronized with the host operating This is a low-precision time stamp, synchronized with the host operating
system's clock. system's clock.
.TP 5 .TP 5
.BR PCAP_TSTAMP_HOST_HIPREC .BR PCAP_TSTAMP_HOST_HIPREC " - " host_hiprec
Time stamp provided by the host on which the capture is being done. Time stamp provided by the host on which the capture is being done.
This is a high-precision time stamp; it might or might not be This is a high-precision time stamp; it might or might not be
synchronized with the host operating system's clock. It might be more synchronized with the host operating system's clock. It might be more
expensive to fetch than expensive to fetch than
.BR PCAP_TSTAMP_HOST_LOWPREC . .BR PCAP_TSTAMP_HOST_LOWPREC .
.TP 5 .TP 5
.BR PCAP_TSTAMP_ADAPTER .BR PCAP_TSTAMP_ADAPTER " - " adapter
Time stamp provided by the network adapter on which the capture is being Time stamp provided by the network adapter on which the capture is being
done. This is a high-precision time stamp, synchronized with the host done. This is a high-precision time stamp, synchronized with the host
operating system's clock. operating system's clock.
.TP 5 .TP 5
.BR PCAP_TSTAMP_ADAPTER_UNSYNCED .BR PCAP_TSTAMP_ADAPTER_UNSYNCED " - " adapter_unsynced
Time stamp provided by the network adapter on which the capture is being Time stamp provided by the network adapter on which the capture is being
done. This is a high-precision time stamp; it is not synchronized with done. This is a high-precision time stamp; it is not synchronized with
the host operating system's clock. the host operating system's clock.
.RE .RE
.SH SEE ALSO .SH SEE ALSO
pcap_set_tstamp_type(3PCAP), pcap_set_tstamp_type(3PCAP),
pcap_list_tstamp_types(3PCAP) pcap_list_tstamp_types(3PCAP),
pcap_tstamp_type_val_to_name(3PCAP),
pcap_tstamp_name_to_val(3PCAP)