1PCAP_FILE(3PCAP) PCAP_FILE(3PCAP)
2
3
4
6 pcap_file - get the standard I/O stream for a savefile being read
7
9 #include <pcap/pcap.h>
10
11 FILE *pcap_file(pcap_t *p);
12
14 pcap_file() returns the standard I/O stream of the ``savefile,'' if a
15 ``savefile'' was opened with pcap_open_offline(3PCAP), or NULL, if a
16 network device was opened with pcap_create(3PCAP) and
17 pcap_activate(3PCAP), or with pcap_open_live(3PCAP).
18
19 Note that the Packet Capture library is usually built with large file
20 support, so the standard I/O stream of the ``savefile'' might refer to
21 a file larger than 2 gigabytes; applications that use pcap_file()
22 should, if possible, use calls that support large files on the return
23 value of pcap_file() or the value returned by fileno(3) when passed the
24 return value of pcap_file().
25
27 pcap(3PCAP)
28
29
30
31 3 January 2014 PCAP_FILE(3PCAP)