Package org.onlab.packet.dhcp
Class Dhcp6LeaseQueryOption
- java.lang.Object
-
- org.onlab.packet.BasePacket
-
- org.onlab.packet.dhcp.Dhcp6Option
-
- org.onlab.packet.dhcp.Dhcp6LeaseQueryOption
-
- All Implemented Interfaces:
IPacket
public final class Dhcp6LeaseQueryOption extends Dhcp6Option
DHCPv6 Lease Query Option.
-
-
Field Summary
Fields Modifier and Type Field Description static intDEFAULT_LENIp6AddresslinkAddressbytequeryType-
Fields inherited from class org.onlab.packet.dhcp.Dhcp6Option
UNSIGNED_SHORT_MASK
-
Fields inherited from class org.onlab.packet.BasePacket
parent, payload
-
-
Constructor Summary
Constructors Constructor Description Dhcp6LeaseQueryOption(Dhcp6Option dhcp6Option)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Deserializer<Dhcp6Option>deserializer()booleanequals(Object obj)shortgetCode()Gets the code of this option.byte[]getData()Gets the data of this option.shortgetLength()Gets the length of this option.inthashCode()byte[]serialize()Sets all payloads parent packet if applicable, then serializes this packet and all payloads.StringtoString()-
Methods inherited from class org.onlab.packet.dhcp.Dhcp6Option
getToStringHelper, setCode, setData, setLength
-
Methods inherited from class org.onlab.packet.BasePacket
clone, getParent, getPayload, resetChecksum, setParent, setPayload
-
-
-
-
Field Detail
-
DEFAULT_LEN
public static final int DEFAULT_LEN
- See Also:
- Constant Field Values
-
linkAddress
public Ip6Address linkAddress
-
queryType
public byte queryType
-
-
Constructor Detail
-
Dhcp6LeaseQueryOption
public Dhcp6LeaseQueryOption(Dhcp6Option dhcp6Option)
-
-
Method Detail
-
getCode
public short getCode()
Description copied from class:Dhcp6OptionGets the code of this option.- Overrides:
getCodein classDhcp6Option- Returns:
- the code
-
getLength
public short getLength()
Description copied from class:Dhcp6OptionGets the length of this option.- Overrides:
getLengthin classDhcp6Option- Returns:
- the length of this option
-
getData
public byte[] getData()
Description copied from class:Dhcp6OptionGets the data of this option.- Overrides:
getDatain classDhcp6Option- Returns:
- the data of this option
-
deserializer
public static Deserializer<Dhcp6Option> deserializer()
-
serialize
public byte[] serialize()
Description copied from interface:IPacketSets all payloads parent packet if applicable, then serializes this packet and all payloads.- Specified by:
serializein interfaceIPacket- Overrides:
serializein classDhcp6Option- Returns:
- a byte[] containing this packet and payloads
-
toString
public String toString()
- Overrides:
toStringin classDhcp6Option
-
hashCode
public int hashCode()
- Overrides:
hashCodein classDhcp6Option
-
equals
public boolean equals(Object obj)
- Overrides:
equalsin classDhcp6Option
-
-