public class BgpFsSourcePrefix extends java.lang.Object implements BgpValueType
| Modifier and Type | Field and Description |
|---|---|
static int |
BYTE_IN_BITS |
static byte |
FLOW_SPEC_TYPE |
| Constructor and Description |
|---|
BgpFsSourcePrefix(byte length,
org.onlab.packet.IpPrefix ipPrefix)
Constructor to initialize parameters.
|
| 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() |
org.onlab.packet.IpPrefix |
ipPrefix()
Returns ip prefix.
|
static BgpFsSourcePrefix |
of(org.onlab.packet.IpPrefix ipPrefix,
byte length)
Returns object of this class with specified values.
|
static BgpFsSourcePrefix |
read(org.jboss.netty.buffer.ChannelBuffer cb)
Reads the channel buffer and returns object of IPv4AddressTlv.
|
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 byte FLOW_SPEC_TYPE
public static final int BYTE_IN_BITS
public BgpFsSourcePrefix(byte length,
org.onlab.packet.IpPrefix ipPrefix)
length - length of the prefixipPrefix - ip prefixpublic static BgpFsSourcePrefix read(org.jboss.netty.buffer.ChannelBuffer cb) throws BgpParseException
cb - channelBufferBgpParseException - while parsing BgpFsSourcePrefixpublic static BgpFsSourcePrefix of(org.onlab.packet.IpPrefix ipPrefix, byte length)
ipPrefix - ip prefixlength - length of ip prefixpublic org.onlab.packet.IpPrefix ipPrefix()
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 int compareTo(java.lang.Object o)
BgpValueTypecompareTo in interface BgpValueTypeo - objectpublic java.lang.String toString()
toString in class java.lang.Object