public class Gre extends Object implements Protocol
Gre.Builder
(mutable).Modifier and Type | Class and Description |
---|---|
static class |
Gre.Builder
Builder (mutable) used to create new protocol instances.
|
Modifier and Type | Field and Description |
---|---|
static long |
NONE
Used to signify no key or sequence number.
|
Modifier and Type | Method and Description |
---|---|
int |
checkSum()
Returns the checksum value or
NONE . |
ProtocolId |
id()
Returns the protocol ID.
|
long |
key()
Returns the key or
NONE . |
EthernetType |
protoType()
Returns the protocol type.
|
long |
seqNum()
Returns the sequence number or
NONE . |
String |
toDebugString()
Returns the protocol debug string.
|
String |
toString() |
int |
version()
Returns the version.
|
public static final long NONE
public ProtocolId id()
Protocol
public EthernetType protoType()
public int version()
public long key()
NONE
.public long seqNum()
NONE
.public int checkSum()
NONE
.public String toDebugString()
Protocol
toDebugString
in interface Protocol
Copyright © 2015. All Rights Reserved.