pcap_dump - write a packet to a capture file
#include <pcap/pcap.h> void pcap_dump(u_char *user, struct pcap_pkthdr *h, u_char *sp);
PCAP_DUMP(3pcap) PCAP_DUMP(3pcap)
NAME
pcap_dump - write a packet to a capture file
SYNOPSIS
#include <pcap/pcap.h>
void pcap_dump(u_char *user, struct pcap_pkthdr *h,
u_char *sp);
DESCRIPTION
pcap_dump() outputs a packet to the ``savefile'' opened with
pcap_dump_open(3PCAP). Note that its calling arguments are suitable
for use with pcap_dispatch(3PCAP) or pcap_loop(3PCAP). If called
directly, the user parameter is of type pcap_dumper_t as returned by
pcap_dump_open().
ATTRIBUTES
See attributes(7) for descriptions of the following attributes:
+---------------+------------------------+
|ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+---------------+------------------------+
|Availability | system/library/libpcap |
+---------------+------------------------+
|Stability | Uncommitted |
+---------------+------------------------+
SEE ALSO
pcap(3PCAP)
NOTES
Source code for open source software components in Oracle Solaris can
be found at https://www.oracle.com/downloads/opensource/solaris-source-
code-downloads.html.
This software was built from source available at
https://github.com/oracle/solaris-userland. The original community
source was downloaded from https://www.tcpdump.org/release/libp-
cap-1.9.1.tar.gz.
Further information about this software can be found on the open source
community website at https://www.tcpdump.org/.
8 March 2015 PCAP_DUMP(3pcap)