public interface OspfMessage
| Modifier and Type | Method and Description |
|---|---|
byte[] |
asBytes()
Returns OSPFMessage as byte array.
|
org.onlab.packet.Ip4Address |
destinationIp()
Gets the destination IP address.
|
int |
interfaceIndex()
Returns the interface index on which the message received.
|
OspfPacketType |
ospfMessageType()
Returns the type of OSPF message.
|
void |
readFrom(org.jboss.netty.buffer.ChannelBuffer channelBuffer)
Reads from ChannelBuffer and initializes the type of LSA.
|
void |
setDestinationIp(org.onlab.packet.Ip4Address destinationIp)
Sets destination IP.
|
void |
setInterfaceIndex(int interfaceIndex)
Sets the interface index on which the message received.
|
void |
setSourceIp(org.onlab.packet.Ip4Address sourceIp)
Sets the source IP address.
|
int interfaceIndex()
void setInterfaceIndex(int interfaceIndex)
interfaceIndex - interface index on which the message receivedOspfPacketType ospfMessageType()
void readFrom(org.jboss.netty.buffer.ChannelBuffer channelBuffer)
throws OspfParseException
channelBuffer - channel buffer instanceOspfParseException - might throws exception while parsing bufferbyte[] asBytes()
void setSourceIp(org.onlab.packet.Ip4Address sourceIp)
sourceIp - IP addressorg.onlab.packet.Ip4Address destinationIp()
void setDestinationIp(org.onlab.packet.Ip4Address destinationIp)
destinationIp - destination IP address