public final class FpmHeader extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
FPM_HEADER_LENGTH |
static short |
FPM_TYPE_NETLINK |
static short |
FPM_VERSION_1 |
| Modifier and Type | Method and Description |
|---|---|
static FpmHeader |
decode(byte[] buffer,
int start,
int length)
Decodes an FPM header from an input buffer.
|
int |
length()
Returns the message length.
|
Netlink |
netlink()
Returns the netlink header.
|
String |
toString() |
short |
type()
Returns the type.
|
short |
version()
Returns the protocol version.
|
public static final int FPM_HEADER_LENGTH
public static final short FPM_VERSION_1
public static final short FPM_TYPE_NETLINK
public short version()
public short type()
public int length()
public Netlink netlink()
public static FpmHeader decode(byte[] buffer, int start, int length) throws org.onlab.packet.DeserializationException
buffer - input bufferstart - starting position the FPM headerlength - length of the messageorg.onlab.packet.DeserializationException - if an FPM header could not be decoded
from the input buffer