Name
pcap_dump — Prototype: void pcap_dump(u_char *user, struct pcap_pkthdr *h, u_char *sp)
Synopsis
Purpose: pcap_dump
writes a packet with the
libpcap packet header h
, and
the packet body sp
, to the saved file opened with
pcap_dump_open
. If called directly, the
user
value should be the
pcap_dumper_t
handle opened by
pcap_dump_open
. pcap_dump
can
also be called from pcap_loop
or
pcap_dispatch
to dump captured packets directly to
a file.
Get Network Security Tools now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.