public class NeighborDiscoveryOptions extends BasePacket
Modifier and Type | Class and Description |
---|---|
class |
NeighborDiscoveryOptions.Option
Packet option.
|
Modifier and Type | Field and Description |
---|---|
static byte |
INITIAL_HEADER_REQUIRED |
static byte |
TYPE_MTU |
static byte |
TYPE_PREFIX_INFORMATION |
static byte |
TYPE_REDIRECTED_HEADER |
static byte |
TYPE_SOURCE_LL_ADDRESS |
static byte |
TYPE_TARGET_LL_ADDRESS |
parent, payload
Constructor and Description |
---|
NeighborDiscoveryOptions() |
Modifier and Type | Method and Description |
---|---|
NeighborDiscoveryOptions |
addOption(byte type,
byte[] data)
Adds a Neighbor Discovery Protocol packet option.
|
static Deserializer<NeighborDiscoveryOptions> |
deserializer() |
boolean |
equals(java.lang.Object obj) |
int |
hashCode() |
boolean |
hasOptions()
Checks whether any options are included.
|
java.util.List<NeighborDiscoveryOptions.Option> |
options()
Gets the Neighbor Discovery Protocol packet options.
|
byte[] |
serialize()
Sets all payloads parent packet if applicable, then serializes this
packet and all payloads.
|
java.lang.String |
toString() |
clone, getParent, getPayload, resetChecksum, setParent, setPayload
public static final byte TYPE_SOURCE_LL_ADDRESS
public static final byte TYPE_TARGET_LL_ADDRESS
public static final byte TYPE_PREFIX_INFORMATION
public static final byte TYPE_REDIRECTED_HEADER
public static final byte TYPE_MTU
public static final byte INITIAL_HEADER_REQUIRED
public NeighborDiscoveryOptions addOption(byte type, byte[] data)
type
- the option typedata
- the option datapublic java.util.List<NeighborDiscoveryOptions.Option> options()
public boolean hasOptions()
public byte[] serialize()
IPacket
public int hashCode()
hashCode
in class BasePacket
public boolean equals(java.lang.Object obj)
equals
in class BasePacket
public static Deserializer<NeighborDiscoveryOptions> deserializer()
public java.lang.String toString()
toString
in class java.lang.Object