Name
pcap_open_dead — Prototype: pcap_t *pcap_open_dead(int linktype, int snaplen)
Synopsis
Purpose: pcap_open_dead
is used to create a
pcap_t
handle, without opening a live capture or
saved file. This is commonly used for compiling BPF code.
linktype
and snaplen
specify
the link type as per Table 10-2 and the capture
length.
Get Network Security Tools now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.