|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--SSF.OS.ProtocolMessage
|
+--SSF.OS.BGP4.Comm.Message
This class holds the header fields of a BGP message. It serves as a parent class for the more specific types of BGP messages which are derived from it (Open, Update, Notification, and KeepAlive messages). It has also also been extended to serve as a timeout notification message and start/stop message.
| Field Summary | |
static int |
KEEPALIVE
Indicates that a BGP message is a KeepAlive message. |
java.lang.String |
nh
The NHI prefix of the router of the neighbor/peer with whom this message is associated. |
static int |
NOTICEUPDATE
Indicates that a BGP message is a NoticeUpdate indicator. |
static int |
NOTIFICATION
Indicates that a BGP message is a Notification message. |
static int |
OCTETS_IN_HEADER
The number of octets (bytes) in the standard header. |
static int |
OPEN
Indicates that a BGP message is an Open message. |
static int |
RUN
Indicates a 'start BGP process' directive to bring BGP into existence in the simulated network. |
static int |
STARTSTOP
Indicates that a BGP message is a Start or Stop directive. |
static int |
TIMEOUT
Indicates that a BGP message is a local timer expiration indicator. |
static int |
TRANSPORT
Indicates that a BGP message is a Transport message. |
int |
typ
The type code of the message. |
static java.lang.String[] |
typeNames
String representations of the different message types. |
static int |
UPDATE
Indicates that a BGP message is an Update message. |
static java.lang.String |
version
The developer's version string of this implementation of BGP-4. |
| Constructor Summary | |
Message()
Empty constructor. |
|
Message(int mtyp,
java.lang.String nhipre)
Constructs a message with the given sender NHI prefix address and message type. |
|
| Method Summary | |
int |
body_bytecount()
Returns the number of octets (bytes) in the message body. |
int |
bytecount()
Returns the number of octets (bytes) in the message. |
int |
header_bytecount()
Returns the number of octets (bytes) in the message header. |
void |
readExternal(java.io.ObjectInput in)
Reads the contents of this object from a serialization stream. |
java.lang.String |
toString()
Returns a string briefly summarizing the message. |
static java.lang.String |
type2str(int typ)
Returns a string representation of the message type name. |
java.lang.String |
version()
Returns the developer's version string of this BGP-4 implementation. |
void |
writeExternal(java.io.ObjectOutput out)
Writes the contents of this object to a serialization stream. |
| Methods inherited from class SSF.OS.ProtocolMessage |
carryPayload, copy, dropHeader, dropPayload, frombytes, fromVersion, payload, previous, size, tobytes |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final int OPEN
public static final int UPDATE
public static final int NOTIFICATION
public static final int KEEPALIVE
public static final int TIMEOUT
public static final int TRANSPORT
public static final int STARTSTOP
public static final int RUN
public static final int NOTICEUPDATE
public static final java.lang.String[] typeNames
public static final int OCTETS_IN_HEADER
public static java.lang.String version
public int typ
public java.lang.String nh
| Constructor Detail |
public Message()
public Message(int mtyp,
java.lang.String nhipre)
mtyp - The type of the message.nhipre - The NHI prefix of the router of the neighbor/peer with
whom this message is associated.| Method Detail |
public java.lang.String version()
version in class ProtocolMessagepublic final int header_bytecount()
header_bytecount in class ProtocolMessagepublic int body_bytecount()
public int bytecount()
bytecount in class ProtocolMessagepublic static java.lang.String type2str(int typ)
typ - An integer indicating a message type.
public java.lang.String toString()
toString in class java.lang.Object
public void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException
writeExternal in interface java.io.Externalizablejava.io.IOException - if there's an error writing the data
public void readExternal(java.io.ObjectInput in)
throws java.io.IOException,
java.lang.ClassNotFoundException
readExternal in interface java.io.Externalizablejava.io.IOException - if there's an error reading in the data
java.lang.ClassNotFoundException - if a class name is unrecognized
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||