public final class Dhcp6IaPdOption extends Dhcp6Option
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_LEN |
UNSIGNED_SHORT_MASKparent, payload| Constructor and Description |
|---|
Dhcp6IaPdOption()
Default constructor.
|
Dhcp6IaPdOption(Dhcp6Option dhcp6Option)
Constructs a DHCPv6 IA PD option with DHCPv6 option.
|
| Modifier and Type | Method and Description |
|---|---|
static Deserializer<Dhcp6Option> |
deserializer()
Gets deserializer.
|
boolean |
equals(java.lang.Object obj) |
short |
getCode()
Gets the code of this option.
|
int |
getIaId()
Gets Identity Association ID.
|
short |
getLength()
Gets the length of this option.
|
java.util.List<Dhcp6Option> |
getOptions()
Gets sub-options.
|
int |
getT1()
Gets time 1.
|
int |
getT2()
Gets time 2.
|
int |
hashCode() |
byte[] |
serialize()
Sets all payloads parent packet if applicable, then serializes this
packet and all payloads.
|
void |
setIaId(int iaId)
Sets Identity Association ID.
|
void |
setOptions(java.util.List<Dhcp6Option> options)
Sets sub-options.
|
void |
setT1(int t1)
Sets time 1.
|
void |
setT2(int t2)
Sets time 2.
|
java.lang.String |
toString() |
getData, getToStringHelper, setCode, setData, setLengthclone, getParent, getPayload, resetChecksum, setParent, setPayloadpublic static final int DEFAULT_LEN
public Dhcp6IaPdOption()
public Dhcp6IaPdOption(Dhcp6Option dhcp6Option)
dhcp6Option - the DHCPv6 optionpublic short getCode()
Dhcp6OptiongetCode in class Dhcp6Optionpublic short getLength()
Dhcp6OptiongetLength in class Dhcp6Optionpublic int getIaId()
public void setIaId(int iaId)
iaId - the Identity Association ID.public int getT1()
public void setT1(int t1)
t1 - the value of time 1public int getT2()
public void setT2(int t2)
t2 - the value of time 2public java.util.List<Dhcp6Option> getOptions()
public void setOptions(java.util.List<Dhcp6Option> options)
options - the sub-options of this optionpublic static Deserializer<Dhcp6Option> deserializer()
public byte[] serialize()
IPacketserialize in interface IPacketserialize in class Dhcp6Optionpublic int hashCode()
hashCode in class Dhcp6Optionpublic boolean equals(java.lang.Object obj)
equals in class Dhcp6Optionpublic java.lang.String toString()
toString in class Dhcp6Option