public interface PacketInFilter
Modifier and Type | Interface and Description |
---|---|
static class |
PacketInFilter.FilterAction
Types of filter action applied to incoming packets.
|
Modifier and Type | Method and Description |
---|---|
int |
droppedPackets()
Get the count of the dropped packets for this filter type.
|
String |
name()
Get the name of the counter.
|
int |
pendingPackets()
Get the current value of the count of packets for this particular
filter type waiting to get processed.
|
PacketInFilter.FilterAction |
preProcess(PacketContext packet)
Returns FilterAction before processing the packet.
|
void |
setGuardTime(int guardTime)
Set the Guard time in case WinThres is crossed.
|
void |
setPps(int pps)
Set the pps rate for the current filter type to calculate the max counter
allowed with window size.
|
void |
setWinSize(int winSize)
Set the window size for rate limiting.
|
void |
setWinThres(int winThres)
Set the Window Threshold for dropping the packet.
|
void |
stop()
Stop the threads running for this filter.
|
PacketInFilter.FilterAction preProcess(PacketContext packet)
packet
- PackerContext holding the packet informationString name()
int pendingPackets()
int droppedPackets()
void setPps(int pps)
pps
- Packet per second rate expectedvoid setWinSize(int winSize)
winSize
- Window size in milli secondsvoid setGuardTime(int guardTime)
guardTime
- Guard time in secondsvoid setWinThres(int winThres)
winThres
- Threshold count of the consecutive windows with packet dropsvoid stop()