drcl.inet.protocol.dv
Class DVPacket
java.lang.Object
drcl.inet.protocol.dv.DVPacket
- All Implemented Interfaces:
- java.lang.Cloneable, ObjectCloneable
- public class DVPacket
- extends java.lang.Object
- implements ObjectCloneable
Defines the format of the packet used by DV.
The format is simplified from what is defined in RFC2453.
|
Method Summary |
void |
addRTE(long dest_,
long mask_,
long nexthop_,
int metric_)
|
java.lang.Object |
clone()
Returns a clone of this object. |
int |
getCommand()
Returns the command of this packet. |
int |
getNumRTEs()
|
drcl.inet.protocol.dv.DVPacket.RTE |
getRTE(int index_)
|
drcl.inet.protocol.dv.DVPacket.RTE[] |
getRTEs()
|
int |
getVersion()
Returns the version of this packet. |
void |
setCommand(int value_)
|
void |
setVersion(int value_)
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
REQUEST
public static final int REQUEST
- See Also:
- Constant Field Values
UPDATE
public static final int UPDATE
- See Also:
- Constant Field Values
DVPacket
public DVPacket()
DVPacket
public DVPacket(int cmd_,
int version_)
getCommand
public int getCommand()
- Returns the command of this packet.
getVersion
public int getVersion()
- Returns the version of this packet.
addRTE
public void addRTE(long dest_,
long mask_,
long nexthop_,
int metric_)
setCommand
public void setCommand(int value_)
setVersion
public void setVersion(int value_)
getNumRTEs
public int getNumRTEs()
getRTE
public drcl.inet.protocol.dv.DVPacket.RTE getRTE(int index_)
getRTEs
public drcl.inet.protocol.dv.DVPacket.RTE[] getRTEs()
clone
public java.lang.Object clone()
- Description copied from interface:
ObjectCloneable
- Returns a clone of this object.
- Specified by:
clone in interface ObjectCloneable
toString
public java.lang.String toString()
Copyright © 1998-2003 Distributed Real-time Computing Lab (DRCL). All Rights Reserved. ~ To J-Sim Home ~