openDead

fnPcapHandle openDead(int linktype, int snaplen)

Creates a "dead" pcap handle for use with other libpcap functions like pcap_compile.

Parameters

linktypeThe link-layer type (DLT_*).
snaplenThe snapshot length.

Returns

A PcapHandle.