public class BgpFsDestinationPrefix extends Object implements BgpValueType
| Modifier and Type | Field and Description |
|---|---|
static int |
BYTE_IN_BITS |
static byte |
FLOW_SPEC_TYPE |
| Constructor and Description |
|---|
BgpFsDestinationPrefix(byte length,
org.onlab.packet.IpPrefix ipPrefix)
Constructor to initialize parameters.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Object o)
Compares two objects.
|
boolean |
equals(Object obj) |
short |
getType()
Returns the Type of BGP Message.
|
int |
hashCode() |
org.onlab.packet.IpPrefix |
ipPrefix()
Returns ip prefix.
|
static BgpFsDestinationPrefix |
of(org.onlab.packet.IpPrefix ipPrefix,
byte length)
Returns object of this class with specified values.
|
static BgpFsDestinationPrefix |
read(org.jboss.netty.buffer.ChannelBuffer cb)
Reads the channel buffer and returns object of IPv4AddressTlv.
|
String |
toString() |
int |
write(org.jboss.netty.buffer.ChannelBuffer cb)
Writes the byte Stream of BGP Message to channel buffer.
|
public static final byte FLOW_SPEC_TYPE
public static final int BYTE_IN_BITS
public BgpFsDestinationPrefix(byte length,
org.onlab.packet.IpPrefix ipPrefix)
length - length of the prefixipPrefix - ip prefixpublic org.onlab.packet.IpPrefix ipPrefix()
public short getType()
BgpValueTypegetType in interface BgpValueTypepublic int write(org.jboss.netty.buffer.ChannelBuffer cb)
BgpValueTypewrite in interface BgpValueTypecb - channel bufferpublic static BgpFsDestinationPrefix read(org.jboss.netty.buffer.ChannelBuffer cb) throws BgpParseException
cb - channelBufferBgpParseException - while parsing BgpFsDestinationPrefixpublic static BgpFsDestinationPrefix of(org.onlab.packet.IpPrefix ipPrefix, byte length)
ipPrefix - ip prefixlength - length of ip prefixpublic int compareTo(Object o)
BgpValueTypecompareTo in interface BgpValueTypeo - object