April 2005
Intermediate to advanced
344 pages
11h 59m
English
pcap_open_offline — Prototype: pcap_t *pcap_open_offline(const char *fname, char *errbuf)
Purpose: pcap_open_offline is used to open a
libpcap-format saved file as a packet source.
The fname string holds a filename appropriate for
the underlying platform, and can be "-" to denote
STDIN. On success a pcap_t
handle is returned that can be used to return packets using any of
the libpcap functions for capturing packets
(such as pcap_next_ex). On error, the function
returns NULL, and errbuf is
populated with an appropriate human-readable error message.
Read now
Unlock full access