manpagez: man pages & more
man pcap_open_dead(3)
Home | html | info | man
PCAP_OPEN_DEAD(3PCAP)                                    PCAP_OPEN_DEAD(3PCAP)


       pcap_open_dead  - open a fake pcap_t for compiling filters or opening a
       capture for output


       #include <pcap/pcap.h>

       pcap_t *pcap_open_dead(int linktype, int snaplen);


       pcap_open_dead() is used for creating a pcap_t structure  to  use  when
       calling the other functions in libpcap.  It is typically used when just
       using libpcap for compiling BPF code.

       linktype specifies the link-layer type for the pcap_t.

       snaplen specifies the snapshot length for the pcap_t.


       pcap(3), pcap-linktype(7)

                                 5 April 2008            PCAP_OPEN_DEAD(3PCAP)

libpcap 1.0.0 - Generated Thu Oct 30 07:40:19 CDT 2008
© 2000-2019
Individual documents may contain additional copyright information.