org.jnetstream.filter.bpf
Interface BpfVM


public interface BpfVM

Public interface to BPF virtual machine. The interface provides basic methods which execute a precompiled BPF program. The program is a byte code array which make up instructions for the VM that are filter specific.

Author:
Mark Bednarczyk, Sly Technologies, Inc.

Method Summary
 long execute(BPFProgram program, java.nio.ByteBuffer p, int wirelen, int buflen)
           
 

Method Detail

execute

long execute(BPFProgram program,
             java.nio.ByteBuffer p,
             int wirelen,
             int buflen)
             throws IllegalInstructionException
Throws:
IllegalInstructionException