public final class RtNetlink extends Object
Taken from struct rtmsg in linux/rtnetlink.h
| Modifier and Type | Method and Description |
|---|---|
short |
addressFamily()
Returns the address family of the route.
|
List<RouteAttribute> |
attributes()
Returns the list of route attributes.
|
static RtNetlink |
decode(byte[] buffer,
int start,
int length)
Decodes an rtnetlink message from an input buffer.
|
int |
dstLength()
Returns the destination address length.
|
long |
flags()
Returns the route flags.
|
RtProtocol |
protocol()
Returns the protocol.
|
short |
scope()
Returns the route scope.
|
int |
srcLength()
Returns the source address length.
|
short |
table()
Returns the routing table.
|
short |
tos()
Returns the type of service.
|
String |
toString() |
short |
type()
Returns the route type.
|
public short addressFamily()
public int dstLength()
public int srcLength()
public short tos()
public short table()
public RtProtocol protocol()
public short scope()
public short type()
public long flags()
public List<RouteAttribute> attributes()
public static RtNetlink decode(byte[] buffer, int start, int length) throws org.onlab.packet.DeserializationException
buffer - input bufferstart - starting position the rtnetlink messagelength - length of the messageorg.onlab.packet.DeserializationException - if an rtnetlink message could not be
decoded from the input buffer