public class NextHop extends Object implements BgpValueType
| Modifier and Type | Field and Description |
|---|---|
static byte |
FLAGS |
static byte |
NEXTHOP_TYPE |
| Constructor and Description |
|---|
NextHop()
Constructor to initialize default parameters.
|
NextHop(org.onlab.packet.Ip4Address nextHop)
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() |
boolean |
isNextHopSet()
Returns whether next hop is present.
|
org.onlab.packet.Ip4Address |
nextHop()
Return nexthop address.
|
static NextHop |
read(org.jboss.netty.buffer.ChannelBuffer cb)
Reads from ChannelBuffer and parses NextHop.
|
String |
toString() |
int |
write(org.jboss.netty.buffer.ChannelBuffer cb)
Writes the byte Stream of BGP Message to channel buffer.
|
public static final byte NEXTHOP_TYPE
public static final byte FLAGS
public NextHop(org.onlab.packet.Ip4Address nextHop)
nextHop - nextHop addresspublic NextHop()
public boolean isNextHopSet()
public static NextHop read(org.jboss.netty.buffer.ChannelBuffer cb) throws BgpParseException
cb - ChannelBufferBgpParseException - while parsing nexthop attributepublic org.onlab.packet.Ip4Address nextHop()
public short getType()
BgpValueTypegetType in interface BgpValueTypepublic int write(org.jboss.netty.buffer.ChannelBuffer cb)
BgpValueTypewrite in interface BgpValueTypecb - channel bufferpublic int compareTo(Object o)
BgpValueTypecompareTo in interface BgpValueTypeo - object