Module org.jnetpcap
Package org.jnetpcap

Class BpFilter

java.lang.Object
org.jnetpcap.BpFilter
All Implemented Interfaces:
AutoCloseable

public final class BpFilter extends Object implements AutoCloseable
A Berkley Packet Filter program. BpFilter is applied to captured packets and only the packets that match the filter program are reported.

Each 64-bit instruction is the long int representation of the following bpf structure found in C header file "pcap/bpf.h":

 struct bpf_insn {
                u_short full;
                u_char  jt;
                u_char  jf;
                bpf_u_int32 k;
 };
 
Author:
Sly Technologies, repos@slytechs.com