Package org.onlab.packet.dhcp
Class Dhcp6ClientIdOption
- java.lang.Object
-
- org.onlab.packet.BasePacket
-
- org.onlab.packet.dhcp.Dhcp6Option
-
- org.onlab.packet.dhcp.Dhcp6ClientIdOption
-
- All Implemented Interfaces:
IPacket
public final class Dhcp6ClientIdOption extends Dhcp6Option
DHCPv6 Client Identifier Option.
-
-
Field Summary
-
Fields inherited from class org.onlab.packet.dhcp.Dhcp6Option
DEFAULT_LEN, UNSIGNED_SHORT_MASK
-
Fields inherited from class org.onlab.packet.BasePacket
parent, payload
-
-
Constructor Summary
Constructors Constructor Description Dhcp6ClientIdOption()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Deserializer<Dhcp6Option>
deserializer()
short
getCode()
Gets the code of this option.byte[]
getData()
Gets the data of this option.Dhcp6Duid
getDuid()
short
getLength()
Gets the length of this option.byte[]
serialize()
Sets all payloads parent packet if applicable, then serializes this packet and all payloads.void
setData(byte[] data)
Sets the data of this option.void
setDuid(Dhcp6Duid duid)
java.lang.String
toString()
-
Methods inherited from class org.onlab.packet.dhcp.Dhcp6Option
equals, getToStringHelper, hashCode, setCode, setLength
-
Methods inherited from class org.onlab.packet.BasePacket
clone, getParent, getPayload, resetChecksum, setParent, setPayload
-
-
-
-
Method Detail
-
getCode
public short getCode()
Description copied from class:Dhcp6Option
Gets the code of this option.- Overrides:
getCode
in classDhcp6Option
- Returns:
- the code
-
getLength
public short getLength()
Description copied from class:Dhcp6Option
Gets the length of this option.- Overrides:
getLength
in classDhcp6Option
- Returns:
- the length of this option
-
getData
public byte[] getData()
Description copied from class:Dhcp6Option
Gets the data of this option.- Overrides:
getData
in classDhcp6Option
- Returns:
- the data of this option
-
setData
public void setData(byte[] data)
Description copied from class:Dhcp6Option
Sets the data of this option.- Overrides:
setData
in classDhcp6Option
- Parameters:
data
- the data to set
-
getDuid
public Dhcp6Duid getDuid()
-
setDuid
public void setDuid(Dhcp6Duid duid)
-
deserializer
public static Deserializer<Dhcp6Option> deserializer()
-
serialize
public byte[] serialize()
Description copied from interface:IPacket
Sets all payloads parent packet if applicable, then serializes this packet and all payloads.- Specified by:
serialize
in interfaceIPacket
- Overrides:
serialize
in classDhcp6Option
- Returns:
- a byte[] containing this packet and payloads
-
toString
public java.lang.String toString()
- Overrides:
toString
in classDhcp6Option
-
-