1PCAP_OFFLINE_FILTER(3PCAP)                          PCAP_OFFLINE_FILTER(3PCAP)
2
3
4

NAME

6       pcap_offline_filter - check whether a filter matches a packet
7

SYNOPSIS

9       #include <pcap/pcap.h>
10
11       int pcap_offline_filter(const struct bpf_program *fp,
12               const struct pcap_pkthdr *h, const u_char *pkt)
13

DESCRIPTION

15       pcap_offline_filter()  checks whether a filter matches a packet.  fp is
16       a pointer to a bpf_program struct, usually the  result  of  a  call  to
17       pcap_compile(3PCAP).   h  points  to  the pcap_pkthdr structure for the
18       packet, and pkt points to the data in the packet.
19

RETURN VALUE

21       pcap_offline_filter() returns the return value of the  filter  program.
22       This  will  be zero if the packet doesn't match the filter and non-zero
23       if the packet matches the filter.
24

SEE ALSO

26       pcap(3PCAP)
27
28
29
30                                 7 April 2014       PCAP_OFFLINE_FILTER(3PCAP)
Impressum