public class IPv6AddressTlv extends Object implements BgpValueType
| Constructor and Description |
|---|
IPv6AddressTlv(org.onlab.packet.Ip6Address address,
short type)
Constructor to initialize parameters.
|
| Modifier and Type | Method and Description |
|---|---|
org.onlab.packet.Ip6Address |
address()
Returns Ipv6 address of interface/neighbor.
|
int |
compareTo(Object o)
Compares two objects.
|
boolean |
equals(Object obj) |
short |
getType()
Returns the Type of BGP Message.
|
int |
hashCode() |
static IPv6AddressTlv |
of(org.onlab.packet.Ip6Address address,
short type)
Returns object of this class with specified values.
|
static IPv6AddressTlv |
read(org.jboss.netty.buffer.ChannelBuffer cb,
short type)
Reads the channel buffer and returns object of IPv6AddressTlv.
|
String |
toString() |
int |
write(org.jboss.netty.buffer.ChannelBuffer cb)
Writes the byte Stream of BGP Message to channel buffer.
|
public IPv6AddressTlv(org.onlab.packet.Ip6Address address,
short type)
address - Ipv6 address of interface/neighbortype - address typepublic org.onlab.packet.Ip6Address address()
public short getType()
BgpValueTypegetType in interface BgpValueTypepublic int write(org.jboss.netty.buffer.ChannelBuffer cb)
BgpValueTypewrite in interface BgpValueTypecb - channel bufferpublic static IPv6AddressTlv read(org.jboss.netty.buffer.ChannelBuffer cb, short type) throws BgpParseException
cb - channelBuffertype - address typeBgpParseException - while parsing IPv6AddressTlvpublic static IPv6AddressTlv of(org.onlab.packet.Ip6Address address, short type)
address - Ipv6 interface/neighbor addresstype - says Ipv6 address of interface/neighbor tlv typepublic int compareTo(Object o)
BgpValueTypecompareTo in interface BgpValueTypeo - objectCopyright © 2016. All rights reserved.