public class BgpPrefixAttrOspfFwdAddr extends java.lang.Object implements BgpValueType
| Modifier and Type | Field and Description |
|---|---|
static int |
ATTR_PREFIX_OSPFFWDADDR |
static int |
IPV4_LEN |
static int |
IPV6_LEN |
| Constructor and Description |
|---|
BgpPrefixAttrOspfFwdAddr(short lsAttrLength,
org.onlab.packet.Ip4Address ip4RouterId,
org.onlab.packet.Ip6Address ip6RouterId)
Constructor to initialize the value.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(java.lang.Object o)
Compares two objects.
|
boolean |
equals(java.lang.Object obj) |
short |
getType()
Returns the Type of BGP Message.
|
int |
hashCode() |
static BgpPrefixAttrOspfFwdAddr |
of(short lsAttrLength,
org.onlab.packet.Ip4Address ip4RouterId,
org.onlab.packet.Ip6Address ip6RouterId)
Returns object of this class with specified values.
|
short |
ospfFwdAddrLen()
Returns OSPF forwarding address length.
|
org.onlab.packet.Ip4Address |
ospfv4FwdAddr()
Returns IPV4 Address of OSPF forwarding address.
|
org.onlab.packet.Ip6Address |
ospfv6FwdAddr()
Returns IPV6 Address of OSPF forwarding address.
|
static BgpPrefixAttrOspfFwdAddr |
read(org.jboss.netty.buffer.ChannelBuffer cb)
Reads the OSPF Forwarding Address.
|
java.lang.String |
toString() |
int |
write(org.jboss.netty.buffer.ChannelBuffer cb)
Writes the byte Stream of BGP Message to channel buffer.
|
public static final int ATTR_PREFIX_OSPFFWDADDR
public static final int IPV4_LEN
public static final int IPV6_LEN
public BgpPrefixAttrOspfFwdAddr(short lsAttrLength,
org.onlab.packet.Ip4Address ip4RouterId,
org.onlab.packet.Ip6Address ip6RouterId)
lsAttrLength - length of the IP addressip4RouterId - Valid IPV4 address if length is 4 else nullip6RouterId - Valid IPV6 address if length is 16 else nullpublic static BgpPrefixAttrOspfFwdAddr of(short lsAttrLength, org.onlab.packet.Ip4Address ip4RouterId, org.onlab.packet.Ip6Address ip6RouterId)
lsAttrLength - length of the IP addressip4RouterId - Valid IPV4 address if length is 4 else nullip6RouterId - Valid IPV6 address if length is 16 else nullpublic static BgpPrefixAttrOspfFwdAddr read(org.jboss.netty.buffer.ChannelBuffer cb) throws BgpParseException
cb - ChannelBufferBgpParseException - while parsing BgpPrefixAttrOspfFwdAddrpublic org.onlab.packet.Ip4Address ospfv4FwdAddr()
public org.onlab.packet.Ip6Address ospfv6FwdAddr()
public short ospfFwdAddrLen()
public short getType()
BgpValueTypegetType in interface BgpValueTypepublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int write(org.jboss.netty.buffer.ChannelBuffer cb)
BgpValueTypewrite in interface BgpValueTypecb - channel bufferpublic java.lang.String toString()
toString in class java.lang.Objectpublic int compareTo(java.lang.Object o)
BgpValueTypecompareTo in interface BgpValueTypeo - object