|
||||||||||
| 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
|
+--SSF.OS.BGP4.Comm.OpenMessage
A BGP Open message. Used to initiate negotiation of a peering session with a neighboring BGP speaker.
| Field Summary | |
java.lang.String |
as_nh
The NHI prefix address of the autonomous system of the sender. |
IPaddress |
bgpid
The BGP Identifier of the sender. |
long |
hold_time
The length of time (in logical clock ticks) that the sender proposes for the value of the Hold Timer. |
| Fields inherited from class SSF.OS.BGP4.Comm.Message |
KEEPALIVE, nh, NOTICEUPDATE, NOTIFICATION, OCTETS_IN_HEADER, OPEN, RUN, STARTSTOP, TIMEOUT, TRANSPORT, typ, typeNames, UPDATE, version |
| Constructor Summary | |
OpenMessage()
Empty constructor. |
|
OpenMessage(IPaddress bgp_id,
java.lang.String bgp_as,
java.lang.String nh,
long ht)
Initializes member data. |
|
| Method Summary | |
int |
body_bytecount()
Returns the number of octets (bytes) in the message body only. |
void |
readExternal(java.io.ObjectInput in)
Reads the contents of this object from a serialization stream. |
void |
writeExternal(java.io.ObjectOutput out)
Writes the contents of this object to a serialization stream. |
| Methods inherited from class SSF.OS.BGP4.Comm.Message |
bytecount, header_bytecount, toString, type2str, version |
| 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 java.lang.String as_nh
public long hold_time
BGPSession.ticks2secs(hold_time).
public IPaddress bgpid
| Constructor Detail |
public OpenMessage()
public OpenMessage(IPaddress bgp_id,
java.lang.String bgp_as,
java.lang.String nh,
long ht)
bgp_id - The BGP ID of the BGPSession composing this message.bgp_as - The NHI address prefix of the AS of the BGPSession
composing this message.nh - The NHI address prefix of the sender of this message.ht - The proposed value for the Hold Timer.| Method Detail |
public int body_bytecount()
body_bytecount in class Message
public void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException
writeExternal in interface java.io.ExternalizablewriteExternal in class Messagejava.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.ExternalizablereadExternal in class Messagejava.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 | |||||||||