drcl.inet.protocol.ospf
Class OSPF_Packet
java.lang.Object
drcl.net.Packet
drcl.inet.protocol.ospf.OSPF_Packet
- All Implemented Interfaces:
- java.lang.Cloneable, Countable, ObjectCloneable, PacketWrapper
- public class OSPF_Packet
- extends Packet
This class implements a generic OSPF packet. The following fields from RFC 2328
are not implemented:
- OSPF Version number
- Packet length
- Checksum
- Authentication Type
- Authentication
Ref: RFC 2328 A.3.1 p.190
- Author:
- Wei-peng CHen
|
Method Summary |
java.lang.String |
_toString(java.lang.String separator_)
Prints the packet header. |
java.lang.Object |
clone()
Returns a clone of this object. |
java.lang.String |
getName()
Returns the name of this packet. |
| Methods inherited from class drcl.net.Packet |
equals, getBody, getByteCount, getHeaderSize, getNumberCount, getPacketCount, getPacketSize, getPacketType, getSize, getSizeCount, getTimestamp, isByteCountSupported, isPacketCountSupported, isTimestampSupported, setBody, setBody, setHeaderSize, setPacketSize, setSize, setTimestamp, toString, toString, wraps |
| Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, wait, wait, wait |
getName
public java.lang.String getName()
- Description copied from class:
Packet
- Returns the name of this packet.
- Specified by:
getName in class Packet
_toString
public java.lang.String _toString(java.lang.String separator_)
- Description copied from class:
Packet
- Prints the packet header.
- Overrides:
_toString in class Packet
clone
public java.lang.Object clone()
- Description copied from interface:
ObjectCloneable
- Returns a clone of this object.
- Specified by:
clone in interface ObjectCloneable- Specified by:
clone in class Packet
Copyright © 1998-2003 Distributed Real-time Computing Lab (DRCL). All Rights Reserved. ~ To J-Sim Home ~