Man page of PCAP_DUMP_OPEN
Section: Misc. Reference Manual Pages (3PCAP)
Updated: 22 June 2018
Return to Main Contents
This man page documents libpcap version 1.9.0.
Your system may have a different version installed, possibly with some
local modifications. To achieve the best results, please make sure this
version of this man page suits your needs. If necessary, try to look for
a different version on this web site or in the man pages available in your
pcap_dump_open, pcap_dump_fopen - open a file to which to write packets
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);
is called to open a ``savefile'' for writing.
specifies the name of the file to open. The file will have
the same format as those used by
The name "-" is a synonym
is called to write data to an existing open stream
this stream will be closed by a subsequent call to
Note that on Windows, that stream should be opened in binary mode.
is a capture or ``savefile'' handle returned by an earlier call to
and activated by an earlier call to
or returned by an earlier call to
The time stamp precision, link-layer type, and snapshot length from
are used as the link-layer type and snapshot length of the output file.
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
it will write new packets at the end of the file.
A pointer to a
structure to use in subsequent
calls is returned on success.
is returned on failure.
can be used to get the error text.
pcap(3PCAP), pcap_create(3PCAP), pcap_activate(3PCAP),
pcap_open_offline(3PCAP), pcap_open_live(3PCAP), pcap_open_dead(3PCAP),
pcap_dump(3PCAP), pcap_dump_close(3PCAP), pcap_geterr(3PCAP),
This document was created by
using the manual pages from "The Tcpdump Group" git repositories.
Time: 12:21:39 GMT, October 07, 2021
[Valid HTML 4.01]