jnetpcap.filter
Interface Filter

All Known Implementing Classes:
BPFFilter, Filter.And, Filter.Or

public interface Filter

A filter used to limit that scope of captures, packet reads from a file or from an IO stream.

Author:
Mark Bednarczyk, Sly Technologies, Inc.

Nested Class Summary
static class Filter.And
          Takes two filters (left and right) and does an AND logical operation after evaluating each of the filters.
static class Filter.Or
          A filter used to limit that scope of captures, packet reads from a file or from an IO stream.
 
Method Summary
 boolean execute(java.nio.ByteBuffer buffer, FilterTarget dlt)
          Executes the given filter and returns the result of the evaluation against the buffer.
 

Method Detail

execute

boolean execute(java.nio.ByteBuffer buffer,
                FilterTarget dlt)
Executes the given filter and returns the result of the evaluation against the buffer. True means the filter matched, false means it failed.

Parameters:
buffer - buffer to execute the filter against
dlt - TODO
Returns:
true filter succeeded, false failed