public final class Dhcp6IaAddressOption extends Dhcp6Option
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_LEN |
UNSIGNED_SHORT_MASK
parent, payload
Constructor and Description |
---|
Dhcp6IaAddressOption() |
Modifier and Type | Method and Description |
---|---|
static Deserializer<Dhcp6Option> |
deserializer() |
boolean |
equals(java.lang.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.
|
java.lang.String |
toString() |
getData, getToStringHelper, setCode, setData, setLength
clone, getParent, getPayload, resetChecksum, setParent, setPayload
public static final int DEFAULT_LEN
public short getCode()
Dhcp6Option
getCode
in class Dhcp6Option
public short getLength()
Dhcp6Option
getLength
in class Dhcp6Option
public 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()
IPacket
serialize
in interface IPacket
serialize
in class Dhcp6Option
public int hashCode()
hashCode
in class Dhcp6Option
public boolean equals(java.lang.Object obj)
equals
in class Dhcp6Option
public java.lang.String toString()
toString
in class Dhcp6Option