pcap_dump(3PCAP) man page

pcap_dump(3PCAP) man page - 图1


pcap_dump(3PCAP) man page

Updated: 8 March 2015 • View in plain text • Return to Main Contents


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**](https://www.tcpdump.org/manpages/pcap_dump_open.3pcap.html)(3PCAP). Note that its calling arguments are suitable for use with [**pcap\_dispatch**](https://www.tcpdump.org/manpages/pcap_loop.3pcap.html)(3PCAP) or [**pcap\_loop**](https://www.tcpdump.org/manpages/pcap_loop.3pcap.html)(3PCAP). If called directly, the *user* parameter is of typepcap_dumper_t` as returned by pcap_dump_open().

SEE ALSO

pcap(3PCAP)


COLOPHON

This HTML man page was generated at 15:15:20 GMT, September 13, 2026 from a source man page in “The Tcpdump Group” git repositories using man2html and other tools.