public final class Dhcp6IaAddressOption extends Dhcp6Option
| Modifier and Type | Field and Description | 
|---|---|
static int | 
DEFAULT_LEN  | 
UNSIGNED_SHORT_MASKparent, payload| Constructor and Description | 
|---|
Dhcp6IaAddressOption()  | 
| Modifier and Type | Method and Description | 
|---|---|
static Deserializer<Dhcp6Option> | 
deserializer()  | 
boolean | 
equals(Object obj)  | 
short | 
getCode()
Gets the code of this option. 
 | 
Ip6Address | 
getIp6Address()
Gets IPv6 address. 
 | 
short | 
getLength()
Gets the length of this option. 
 | 
IPacket | 
getOptions()
Gets options of IA Address option. 
 | 
int | 
getPreferredLifetime()
Gets preferred lifetime. 
 | 
int | 
getValidLifetime()
Gets valid lifetime. 
 | 
int | 
hashCode()  | 
byte[] | 
serialize()
Sets all payloads parent packet if applicable, then serializes this
 packet and all payloads. 
 | 
void | 
setIp6Address(Ip6Address ip6Address)
Sets IPv6 address. 
 | 
void | 
setOptions(IPacket options)
Sets options data. 
 | 
void | 
setPreferredLifetime(int preferredLifetime)
Sets preferred lifetime. 
 | 
void | 
setValidLifetime(int validLifetime)
Sets valid lifetime. 
 | 
String | 
toString()  | 
getData, getToStringHelper, setCode, setData, setLengthclone, getParent, getPayload, resetChecksum, setParent, setPayloadpublic static final int DEFAULT_LEN
public short getCode()
Dhcp6OptiongetCode in class Dhcp6Optionpublic short getLength()
Dhcp6OptiongetLength in class Dhcp6Optionpublic void setIp6Address(Ip6Address ip6Address)
ip6Address - the IPv6 addresspublic void setPreferredLifetime(int preferredLifetime)
preferredLifetime - the preferred lifetimepublic void setValidLifetime(int validLifetime)
validLifetime - the valid lifetimepublic void setOptions(IPacket options)
options - the options datapublic Ip6Address getIp6Address()
public int getPreferredLifetime()
public int getValidLifetime()
public IPacket getOptions()
public static Deserializer<Dhcp6Option> deserializer()
public byte[] serialize()
IPacketserialize in interface IPacketserialize in class Dhcp6Optionpublic int hashCode()
hashCode in class Dhcp6Optionpublic boolean equals(Object obj)
equals in class Dhcp6Optionpublic String toString()
toString in class Dhcp6Option