April 2005
Intermediate to advanced
344 pages
11h 59m
English
pcap_compile_nopcap — Prototype: int
pcap_compile_nopcap(int snaplen, int linktype, struct bpf_program
*fp,char *str, int optimize, bpf_u_int32 netmask)
Purpose: pcap_compile_nopcap is a wrapper to
pcap_compile that allows us to compile BPF filters
without a pcap_t structure.
snaplen and linktype specify
the capture length and the link type (as per Table 10-2) and are used as arguments to
pcap_open_dead.
pcap_compile_nopcap returns 0
on success and -1 on error.
Read now
Unlock full access