April 2005
Intermediate to advanced
344 pages
11h 59m
English
pcap_dump — Prototype: void pcap_dump(u_char *user, struct pcap_pkthdr *h, u_char *sp)
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.
Read now
Unlock full access