public final class Dhcp6IaPrefixOption extends Dhcp6Option
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_LEN |
UNSIGNED_SHORT_MASK
parent, payload
Constructor and Description |
---|
Dhcp6IaPrefixOption() |
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 |
getIp6Prefix()
Gets IPv6 address.
|
short |
getLength()
Gets the length of this option.
|
IPacket |
getOptions()
Gets options of IA Address option.
|
int |
getPreferredLifetime()
Gets preferred lifetime.
|
byte |
getPrefixLength()
Gets prefix length.
|
int |
getValidLifetime()
Gets valid lifetime.
|
int |
hashCode() |
byte[] |
serialize()
Sets all payloads parent packet if applicable, then serializes this
packet and all payloads.
|
void |
setIp6Prefix(Ip6Address ip6Prefix)
Sets IPv6 prefix.
|
void |
setOptions(IPacket options)
Sets options data.
|
void |
setPreferredLifetime(int preferredLifetime)
Sets preferred lifetime.
|
void |
setPrefixLength(byte prefixLength)
Sets prefix length.
|
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 setIp6Prefix(Ip6Address ip6Prefix)
ip6Prefix
- the IPv6 prefixpublic void setPrefixLength(byte prefixLength)
prefixLength
- the prefix lengthpublic 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 getIp6Prefix()
public byte getPrefixLength()
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