jtc
Class U32Filter

java.lang.Object
  |
  +--jtc.Filter
        |
        +--jtc.U32Filter

public class U32Filter
extends Filter

This class represents a multifield filter


Fields inherited from class jtc.Filter
estInterval, estTimer, mBurst, mCont, minorHandle, mRate, parent, prio, protocol
 
Constructor Summary
U32Filter(QDisc parent)
          Construct a U32Filter.
 
Method Summary
 void addDstAddressMatch(java.lang.String dst)
          Add a destination address match.
 void addDstPortMatch(short port)
          Add a destination port match to the selector.
 void addProtocolMatch(byte proto)
          Add a protocol match to the selector.
 void addSrcAddressMatch(java.lang.String src)
          Add a source address match.
 void addSrcPortMatch(short port)
          Add a source port match to the selector.
 void addTosMatch(byte tos)
          Add a match of the type of service field to the selector.
 void setFlow(TCClass flow)
          Set the class to which the filter shall direct matching packets.
 java.lang.String toString()
          Get a string representation of the object.
 
Methods inherited from class jtc.Filter
decrPrio, getMeter, getTC, setEstimator, setMeter, setPrio, setProtocol
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

U32Filter

public U32Filter(QDisc parent)
Construct a U32Filter.
Parameters:
parent - the queueing discpipline in which the filter resides
Method Detail

setFlow

public void setFlow(TCClass flow)
Set the class to which the filter shall direct matching packets.
Parameters:
class - to which the filter shall direct matching packets

addProtocolMatch

public void addProtocolMatch(byte proto)
Add a protocol match to the selector.
Parameters:
proto - Packets matching the filter must have this protocol value.

addTosMatch

public void addTosMatch(byte tos)
Add a match of the type of service field to the selector.
Parameters:
tos - Packets matching the filter must have this tos value.

addSrcAddressMatch

public void addSrcAddressMatch(java.lang.String src)
Add a source address match. Use ip adresses like 123.123.123.123 or masks like 123.123.0.0/16.
Parameters:
src - source ip (address or mask)

addDstAddressMatch

public void addDstAddressMatch(java.lang.String dst)
Add a destination address match. Use ip adresses like 123.123.123.123 or masks like 123.123.0.0/16.
Parameters:
dst - dest ip (address or mask)

addSrcPortMatch

public void addSrcPortMatch(short port)
Add a source port match to the selector.
Parameters:
port - Packets matching the filter must have this source port.

addDstPortMatch

public void addDstPortMatch(short port)
Add a destination port match to the selector.
Parameters:
port - Packets matching the filter must have this destination port.

toString

public java.lang.String toString()
Get a string representation of the object. A tc command arg is used to represent it.
Overrides:
toString in class java.lang.Object
Returns:
args for tcd