public class PcapFilter extends Object
Constructor and Description |
---|
PcapFilter(String bpfExpression,
boolean optimize,
int netmask)
Default constructor
|
Modifier and Type | Method and Description |
---|---|
String |
getBpfExpression() |
int |
getNetmask() |
boolean |
isOptimize()
JNetPcap expects an integer value, where 0 is equal to false.
|
public PcapFilter(String bpfExpression, boolean optimize, int netmask)
bpfExpression
- a Berkeley Packet Filter expression, may be null or emptyoptimize
- whether or not to try to optimize the provided filter expression.netmask
- an integer representing a network mask that will be applied by the native compiler.public String getBpfExpression()
public boolean isOptimize()
public int getNetmask()
Copyright © 2013–2015 Institute of networks and security. All rights reserved.