src/org/jnetpcap/Pcap.java
public native static int compileNoPcap(int snaplen,
			int dlt,
			PcapBpfProgram program,
			String str,
			int optimize,
			int netmask);
/**
	 * <p>
	 * Compile a packet filter without the need of opening an adapter. This
	 * function converts an high level filtering expression (see Filtering
	 * expression syntax) in a program that can be interpreted by the kernel-level
	 * filtering engine.
	 * </p>
	 * <p>
	 * pcap_compile_nopcap() is similar to pcap_compile() except that instead of
	 * passing a pcap structure, one passes the snaplen and linktype explicitly.
	 * It is intended to be used for compiling filters for direct BPF usage,
	 * without necessarily having called pcap_open(). (pcap_compile_nopcap() is a
	 * wrapper around pcap_open_dead(), pcap_compile(), and pcap_close(); the
	 * latter three routines can be used directly in order to get the error text
	 * for a compilation error.)
	 * </p>
	 * <p>
	 * Look at the Filtering expression syntax section for details on the str
	 * parameter.
	 * </p>
	 * 
	 * @param snaplen
	 *          generate code to truncate packets to this length upon a match
	 * @param dlt
	 *          the first header type within the packet, or data link type of the
	 *          interface
	 * @param program
	 *          initially empty, but after the method call will contain the
	 *          compiled BPF program
	 * @param str
	 *          a string containing the textual expression to be compiled
	 * @param optimize
	 *          1 means to do optimizations, any other value means no
	 * @param netmask
	 *          netmask needed to determine the broadcast address
	 * @return a return of -1 indicates an error; the error text is unavailable;
	 *         lastly, the compiled program is stored and therefore returned in
	 *         the formal parameter <code>program</code>
	 */

Compile a packet filter without the need of opening an adapter. This
function converts an high level filtering expression (see Filtering
expression syntax) in a program that can be interpreted by the kernel-level
filtering engine.


pcap_compile_nopcap() is similar to pcap_compile() except that instead of
passing a pcap structure, one passes the snaplen and linktype explicitly.
It is intended to be used for compiling filters for direct BPF usage,
without necessarily having called pcap_open(). (pcap_compile_nopcap() is a
wrapper around pcap_open_dead(), pcap_compile(), and pcap_close(); the
latter three routines can be used directly in order to get the error text
for a compilation error.)


Look at the Filtering expression syntax section for details on the str
parameter.


Compile a packet filter without the need of opening an adapter . This function converts an high level filtering expression ( see Filtering expression syntax ) in a program that can be interpreted by the kernel - level filtering engine . pcap_compile_nopcap () is similar to pcap_compile () except that instead of passing a pcap structure one passes the snaplen and linktype explicitly . It is intended to be used for compiling filters for direct BPF usage without necessarily having called pcap_open () . ( pcap_compile_nopcap () is a wrapper around pcap_open_dead () pcap_compile () and pcap_close () ; the latter three routines can be used directly in order to get the error text for a compilation error . ) Look at the Filtering expression syntax section for details on the str parameter .
public native static int compileNoPcap(int snaplen,
			int dlt,
			PcapBpfProgram program,
			String str,
			int optimize,
			int netmask);
public native static int compileNoPcap ( int snaplen , int dlt , PcapBpfProgram program , String str , int optimize , int netmask ) ;
<p>
 Compile a packet filter without the need of opening an adapter.
<p > Compile a packet filter without the need of opening an adapter .