diff options
author | Elliott Hughes <enh@google.com> | 2015-10-19 18:07:04 -0700 |
---|---|---|
committer | Elliott Hughes <enh@google.com> | 2015-10-20 14:06:47 -0700 |
commit | d8845d7191ca81aae8aab4c29410fc8a3d012687 (patch) | |
tree | 93eface1b79d0172beec96c422f5921661455849 /pcap_dump_open.3pcap.in | |
parent | c442bf68e06f961ad0f8fc5a7d19e0984985ea30 (diff) | |
download | libpcap-d8845d7191ca81aae8aab4c29410fc8a3d012687.tar.gz |
Upgrade to libpcap 1.7.4.
Bug: http://b/24902618
Change-Id: I1bb6c1163b573eb01b4bed7c494a6d447e8d45cf
Diffstat (limited to 'pcap_dump_open.3pcap.in')
-rw-r--r-- | pcap_dump_open.3pcap.in | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/pcap_dump_open.3pcap.in b/pcap_dump_open.3pcap.in index 2a5dc9de..0b2e3c62 100644 --- a/pcap_dump_open.3pcap.in +++ b/pcap_dump_open.3pcap.in @@ -1,5 +1,3 @@ -.\" @(#) $Header: /tcpdump/master/libpcap/pcap_dump_open.3pcap.in,v 1.1 2008-10-23 05:56:59 guy Exp $ -.\" .\" Copyright (c) 1994, 1996, 1997 .\" The Regents of the University of California. All rights reserved. .\" @@ -31,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 @@ -43,7 +42,7 @@ the same format as those used by .BR tcpdump (1) and .BR tcpslice (1). -The name "-" in a synonym +The name "-" is a synonym for .BR stdout . .PP @@ -62,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 |