Package org.onlab.packet.dhcp
Class Dhcp6CLTOption
- java.lang.Object
-
- org.onlab.packet.BasePacket
-
- org.onlab.packet.dhcp.Dhcp6Option
-
- org.onlab.packet.dhcp.Dhcp6CLTOption
-
- All Implemented Interfaces:
IPacket
public final class Dhcp6CLTOption extends Dhcp6Option
-
-
Field Summary
Fields Modifier and Type Field Description static int
DEFAULT_LEN
-
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 Dhcp6CLTOption()
Default constructor.Dhcp6CLTOption(Dhcp6Option dhcp6Option)
Constructs a DHCPv6 Client Last Transaction Time option.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Deserializer<Dhcp6Option>
deserializer()
Gets deserializer.boolean
equals(java.lang.Object obj)
int
getClt()
Gets Client Last Transaction Time.short
getCode()
Gets the code of this option.short
getLength()
Gets the length of this option.int
hashCode()
byte[]
serialize()
Sets all payloads parent packet if applicable, then serializes this packet and all payloads.void
setClt(int clt)
Sets Identity Association ID.java.lang.String
toString()
-
Methods inherited from class org.onlab.packet.dhcp.Dhcp6Option
getData, 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
-
-
Constructor Detail
-
Dhcp6CLTOption
public Dhcp6CLTOption()
Default constructor.
-
Dhcp6CLTOption
public Dhcp6CLTOption(Dhcp6Option dhcp6Option)
Constructs a DHCPv6 Client Last Transaction Time option.- Parameters:
dhcp6Option
- the DHCPv6 option
-
-
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
-
getClt
public int getClt()
Gets Client Last Transaction Time.- Returns:
- Client Last Transaction Time
-
setClt
public void setClt(int clt)
Sets Identity Association ID.- Parameters:
clt
- the Client Last Transaction Time.
-
deserializer
public static Deserializer<Dhcp6Option> deserializer()
Gets deserializer.- Returns:
- the 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
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classDhcp6Option
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classDhcp6Option
-
-