1PCAP_OPEN_DEAD(3PCAP) PCAP_OPEN_DEAD(3PCAP)
2
3
4
6 pcap_open_dead - open a fake pcap_t for compiling filters or opening a
7 capture for output
8
10 #include <pcap/pcap.h>
11
12 pcap_t *pcap_open_dead(int linktype, int snaplen);
13
15 pcap_open_dead() is used for creating a pcap_t structure to use when
16 calling the other functions in libpcap. It is typically used when just
17 using libpcap for compiling BPF code.
18
19 linktype specifies the link-layer type for the pcap_t.
20
21 snaplen specifies the snapshot length for the pcap_t.
22
24 pcap(3PCAP), pcap-linktype(7)
25
26
27
28 5 April 2008 PCAP_OPEN_DEAD(3PCAP)