public abstract class RouteAttribute extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
ROUTE_ATTRIBUTE_HEADER_LENGTH |
static int |
RTA_DST |
static int |
RTA_GATEWAY |
static int |
RTA_OIF |
static int |
RTA_PRIORITY |
| Modifier | Constructor and Description |
|---|---|
protected |
RouteAttribute(int length,
int type)
Class constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static RouteAttribute |
decode(byte[] buffer,
int start,
int length)
Decodes a route attribute from an input buffer.
|
int |
length()
Returns the attribute length.
|
abstract String |
toString() |
int |
type()
Returns the attribute type.
|
public static final int ROUTE_ATTRIBUTE_HEADER_LENGTH
public static final int RTA_DST
public static final int RTA_OIF
public static final int RTA_GATEWAY
public static final int RTA_PRIORITY
protected RouteAttribute(int length,
int type)
length - attribute lengthtype - attribute typepublic int length()
public int type()
public static RouteAttribute decode(byte[] buffer, int start, int length) throws org.onlab.packet.DeserializationException
buffer - input bufferstart - starting position the route attribute messagelength - length of the messageorg.onlab.packet.DeserializationException - if a route attribute could not be
decoded from the input buffer