aboutsummaryrefslogtreecommitdiff
path: root/pcap_dump_open.3pcap.in
diff options
context:
space:
mode:
authorXin LI <delphij@FreeBSD.org>2017-02-12 07:04:44 +0000
committerXin LI <delphij@FreeBSD.org>2017-02-12 07:04:44 +0000
commitc8c6d70e300aa9261c4766502c179fc4cd2b22a0 (patch)
tree14c068bb8b49db9f9ae540e8e2be80a9035e403a /pcap_dump_open.3pcap.in
parent50224b10fa4e157f09ee1cd03c790c9e61e76c5e (diff)
downloadsrc-c8c6d70e300aa9261c4766502c179fc4cd2b22a0.tar.gz
src-c8c6d70e300aa9261c4766502c179fc4cd2b22a0.zip
Vendor import of libpcap 1.8.1.vendor/libpcap/1.8.1
Notes
Notes: svn path=/vendor/libpcap/dist/; revision=313676 svn path=/vendor/libpcap/1.8.1/; revision=313677; tag=vendor/libpcap/1.8.1
Diffstat (limited to 'pcap_dump_open.3pcap.in')
-rw-r--r--pcap_dump_open.3pcap.in15
1 files changed, 13 insertions, 2 deletions
diff --git a/pcap_dump_open.3pcap.in b/pcap_dump_open.3pcap.in
index 47ea321e4872..3f91d13bf88a 100644
--- a/pcap_dump_open.3pcap.in
+++ b/pcap_dump_open.3pcap.in
@@ -17,7 +17,7 @@
.\" WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
.\" MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
.\"
-.TH PCAP_DUMP_OPEN 3PCAP "5 April 2008"
+.TH PCAP_DUMP_OPEN 3PCAP "16 February 2015"
.SH NAME
pcap_dump_open, pcap_dump_fopen \- open a file to which to write packets
.SH SYNOPSIS
@@ -29,6 +29,7 @@ pcap_dump_open, pcap_dump_fopen \- open a file to which to write packets
.LP
.ft B
pcap_dumper_t *pcap_dump_open(pcap_t *p, const char *fname);
+pcap_dumper_t *pcap_dump_open_append(pcap_t *p, const char *fname);
pcap_dumper_t *pcap_dump_fopen(pcap_t *p, FILE *fp);
.ft
.fi
@@ -60,9 +61,19 @@ or returned by an earlier call to
.BR pcap_open_live() ,
or
.BR pcap_open_dead() .
-The link-layer type and snapshot length from
+The time stamp precision, link-layer type, and snapshot length from
.I p
are used as the link-layer type and snapshot length of the output file.
+.PP
+.B pcap_dump_open_append()
+is like
+.B pcap_dump_open
+but does not create the file if it does not exist and, if it does
+already exist, and is a pcap file with the same byte order as the host
+opening the file, and has the same time stamp precision, link-layer
+header type, and snapshot length as
+.IR p ,
+it will write new packets at the end of the file.
.SH RETURN VALUES
A pointer to a
.B pcap_dumper_t