public class IPReachabilityInformationTlv extends Object implements BgpValueType
| Modifier and Type | Field and Description |
|---|---|
short |
length |
static int |
ONE_BYTE_LEN |
static short |
TYPE |
| Constructor and Description |
|---|
IPReachabilityInformationTlv(byte prefixLen,
byte[] ipPrefix,
short length)
Constructor to initialize parameters.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Object o)
Compares two objects.
|
boolean |
equals(Object obj) |
byte |
getPrefixLen()
Returns IP Prefix length.
|
org.onlab.packet.IpPrefix |
getPrefixValue()
Returns IP Prefix.
|
short |
getType()
Returns the Type of BGP Message.
|
int |
hashCode() |
static IPReachabilityInformationTlv |
of(byte preficLen,
byte[] prefix,
short length) |
static IPReachabilityInformationTlv |
read(org.jboss.netty.buffer.ChannelBuffer cb,
short length)
Reads the channel buffer and returns object of IPReachabilityInformationTlv.
|
String |
toString() |
int |
write(org.jboss.netty.buffer.ChannelBuffer cb)
Writes the byte Stream of BGP Message to channel buffer.
|
public static final short TYPE
public static final int ONE_BYTE_LEN
public short length
public IPReachabilityInformationTlv(byte prefixLen,
byte[] ipPrefix,
short length)
prefixLen - length of IP PrefixipPrefix - IP Prefixlength - length of value fieldpublic org.onlab.packet.IpPrefix getPrefixValue()
public byte getPrefixLen()
public int write(org.jboss.netty.buffer.ChannelBuffer cb)
BgpValueTypewrite in interface BgpValueTypecb - channel bufferpublic static IPReachabilityInformationTlv read(org.jboss.netty.buffer.ChannelBuffer cb, short length)
cb - ChannelBufferlength - of value fieldpublic static IPReachabilityInformationTlv of(byte preficLen, byte[] prefix, short length)
public short getType()
BgpValueTypegetType in interface BgpValueTypepublic int compareTo(Object o)
BgpValueTypecompareTo in interface BgpValueTypeo - objectCopyright © 2016. All rights reserved.