1PCAP_FILE(3PCAP)                                              PCAP_FILE(3PCAP)
2
3
4

NAME

6       pcap_file - get the standard I/O stream for a savefile being read
7

SYNOPSIS

9       #include <pcap/pcap.h>
10
11       FILE *pcap_file(pcap_t *p);
12

DESCRIPTION

14       pcap_file()  returns  the standard I/O stream of the ``savefile,'' if a
15       ``savefile'' was opened with pcap_open_offline(), or NULL, if a network
16       device  was  opened  with  pcap_create()  and  pcap_activate(), or with
17       pcap_open_live().
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() when passed  the
24       return value of pcap_file().
25

SEE ALSO

27       pcap(3PCAP), pcap_open_offline(3PCAP)
28
29
30
31                                 5 April 2008                 PCAP_FILE(3PCAP)
Impressum