|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--jtc.Filter | +--jtc.U32Filter
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 |
public U32Filter(QDisc parent)
parent
- the queueing discpipline in which the filter residesMethod Detail |
public void setFlow(TCClass flow)
class
- to which the filter shall direct matching packetspublic void addProtocolMatch(byte proto)
proto
- Packets matching the filter must have this protocol value.public void addTosMatch(byte tos)
tos
- Packets matching the filter must have this tos value.public void addSrcAddressMatch(java.lang.String src)
src
- source ip (address or mask)public void addDstAddressMatch(java.lang.String dst)
dst
- dest ip (address or mask)public void addSrcPortMatch(short port)
port
- Packets matching the filter must have this source port.public void addDstPortMatch(short port)
port
- Packets matching the filter must have this destination port.public java.lang.String toString()
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |