public final class Netlink extends Object
Taken from struct nlmsghdr in linux/netlink.h
| Modifier and Type | Field and Description |
|---|---|
static int |
NETLINK_HEADER_LENGTH |
| Modifier and Type | Method and Description |
|---|---|
static Netlink |
decode(byte[] buffer,
int start,
int length)
Decodes a netlink header from an input buffer.
|
int |
flags()
Returns the flags.
|
long |
length()
Returns the message length.
|
long |
processPortId()
Returns the port ID.
|
RtNetlink |
rtNetlink()
Returns the netlink routing message.
|
long |
sequence()
Returns the sequence number.
|
String |
toString() |
NetlinkMessageType |
type()
Returns the message type.
|
public static final int NETLINK_HEADER_LENGTH
public long length()
public NetlinkMessageType type()
public int flags()
public long sequence()
public long processPortId()
public RtNetlink rtNetlink()
public static Netlink decode(byte[] buffer, int start, int length) throws org.onlab.packet.DeserializationException
buffer - input bufferstart - starting position the netlink headerlength - length of the messageorg.onlab.packet.DeserializationException - if a netlink header could not be
decoded from the input buffer