public class Redirect extends BasePacket
| Modifier and Type | Field and Description | 
|---|---|
protected byte[] | 
destinationAddress  | 
static byte | 
HEADER_LENGTH  | 
protected byte[] | 
targetAddress  | 
parent, payload| Constructor and Description | 
|---|
Redirect()  | 
| Modifier and Type | Method and Description | 
|---|---|
Redirect | 
addOption(byte type,
         byte[] data)
Adds a Neighbor Discovery Protocol packet option. 
 | 
static Deserializer<Redirect> | 
deserializer()
Deserializer function for redirect packets. 
 | 
boolean | 
equals(Object obj)  | 
byte[] | 
getDestinationAddress()
Gets destination address. 
 | 
List<NeighborDiscoveryOptions.Option> | 
getOptions()
Gets the Neighbor Discovery Protocol packet options. 
 | 
byte[] | 
getTargetAddress()
Gets target address. 
 | 
int | 
hashCode()  | 
byte[] | 
serialize()
Sets all payloads parent packet if applicable, then serializes this
 packet and all payloads. 
 | 
Redirect | 
setDestinationAddress(byte[] destinationAddress)
Sets destination address. 
 | 
Redirect | 
setTargetAddress(byte[] targetAddress)
Sets target address. 
 | 
String | 
toString()  | 
clone, getParent, getPayload, resetChecksum, setParent, setPayloadpublic static final byte HEADER_LENGTH
protected byte[] targetAddress
protected byte[] destinationAddress
public byte[] getTargetAddress()
public Redirect setTargetAddress(byte[] targetAddress)
targetAddress - the target IPv6 address to setpublic byte[] getDestinationAddress()
public Redirect setDestinationAddress(byte[] destinationAddress)
destinationAddress - the destination IPv6 address to setpublic List<NeighborDiscoveryOptions.Option> getOptions()
public Redirect addOption(byte type, byte[] data)
type - the option typedata - the option datapublic byte[] serialize()
IPacketpublic int hashCode()
hashCode in class BasePacketpublic boolean equals(Object obj)
equals in class BasePacketpublic static Deserializer<Redirect> deserializer()