diff options
author | Joseph Mingrone <jrm@FreeBSD.org> | 2023-03-27 18:45:17 +0000 |
---|---|---|
committer | Joseph Mingrone <jrm@FreeBSD.org> | 2023-03-27 18:45:17 +0000 |
commit | 35af88c96350eb786f1198dfb6b29a171016e6bf (patch) | |
tree | e883c1f8391d5ca1afd57abd8ed9d2cd7c274b0b /pcap_open_dead.3pcap.in | |
parent | 20616273d52132557e786a8aea1637be4c218a08 (diff) | |
download | src-35af88c96350eb786f1198dfb6b29a171016e6bf.tar.gz src-35af88c96350eb786f1198dfb6b29a171016e6bf.zip |
Import libpcap 1.10.3vendor/libpcap/1.10.3
Reviewed by: emaste
Sponsored by: The FreeBSD Foundation
Diffstat (limited to 'pcap_open_dead.3pcap.in')
-rw-r--r-- | pcap_open_dead.3pcap.in | 25 |
1 files changed, 16 insertions, 9 deletions
diff --git a/pcap_open_dead.3pcap.in b/pcap_open_dead.3pcap.in index 97a97f3ac8c0..ced7d6cf1c3e 100644 --- a/pcap_open_dead.3pcap.in +++ b/pcap_open_dead.3pcap.in @@ -35,18 +35,18 @@ pcap_t *pcap_open_dead_with_tstamp_precision(int linktype, int snaplen, .fi .SH DESCRIPTION .PP -.B pcap_open_dead() +.BR pcap_open_dead () and -.B pcap_open_dead_with_tstamp_precision() +.BR pcap_open_dead_with_tstamp_precision () are used for creating a .B pcap_t structure to use when calling the other functions in libpcap. It is typically used when just using libpcap for compiling BPF code; it can also be used if using -.BR pcap_dump_open(3PCAP) , -.BR pcap_dump(3PCAP) , +.BR pcap_dump_open (3PCAP), +.BR pcap_dump (3PCAP), and -.B pcap_dump_close(3PCAP) +.BR pcap_dump_close (3PCAP) to write a savefile if there is no .B pcap_t that supplies the packets to be written. @@ -60,11 +60,11 @@ specifies the snapshot length for the .BR pcap_t . .PP When -.BR pcap_open_dead_with_tstamp_precision() , +.BR pcap_open_dead_with_tstamp_precision (), is used to create a .B pcap_t for use with -.BR pcap_dump_open() , +.BR pcap_dump_open (), .I precision specifies the time stamp precision for packets; .B PCAP_TSTAMP_PRECISION_MICRO @@ -73,6 +73,13 @@ seconds and microseconds, and .B PCAP_TSTAMP_PRECISION_NANO should be specified if the packets to be written have time stamps in seconds and nanoseconds. Its value does not affect -.BR pcap_compile(3PCAP) . +.BR pcap_compile (3PCAP). +.SH BACKWARD COMPATIBILITY +The +.BR pcap_open_dead_with_tstamp_precision () +function became available in libpcap release 1.5.1. In previous +releases, there was no mechanism to open a savefile for writing with +time stamps given in seconds and nanoseconds. .SH SEE ALSO -pcap(3PCAP), \%pcap-linktype(@MAN_MISC_INFO@) +.BR pcap (3PCAP), +.BR \%pcap-linktype (@MAN_MISC_INFO@) |