public class RouterSolicitation extends BasePacket
Modifier and Type | Field and Description |
---|---|
static byte |
HEADER_LENGTH |
parent, payload
Constructor and Description |
---|
RouterSolicitation() |
Modifier and Type | Method and Description |
---|---|
RouterSolicitation |
addOption(byte type,
byte[] data)
Adds a Neighbor Discovery Protocol packet option.
|
static Deserializer<RouterSolicitation> |
deserializer()
Deserializer function for router solicitation packets.
|
boolean |
equals(java.lang.Object obj) |
java.util.List<NeighborDiscoveryOptions.Option> |
getOptions()
Gets the Neighbor Discovery Protocol packet options.
|
int |
hashCode() |
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 HEADER_LENGTH
public java.util.List<NeighborDiscoveryOptions.Option> getOptions()
public RouterSolicitation addOption(byte type, byte[] data)
type
- the option typedata
- the option datapublic byte[] serialize()
IPacket
public int hashCode()
hashCode
in class BasePacket
public boolean equals(java.lang.Object obj)
equals
in class BasePacket
public static Deserializer<RouterSolicitation> deserializer()
public java.lang.String toString()
toString
in class java.lang.Object