Package org.onlab.packet.dhcp
Class Dhcp6RelayOption
- java.lang.Object
-
- org.onlab.packet.BasePacket
-
- org.onlab.packet.dhcp.Dhcp6Option
-
- org.onlab.packet.dhcp.Dhcp6RelayOption
-
- All Implemented Interfaces:
IPacket
public final class Dhcp6RelayOption extends Dhcp6Option
Relay option for DHCPv6. Based on RFC-3315.
-
-
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 Dhcp6RelayOption()
Default constructor.Dhcp6RelayOption(Dhcp6Option dhcp6Option)
Constructs a DHCPv6 relay option with DHCPv6 option.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Deserializer<Dhcp6Option>
deserializer()
Gets deserializer for DHCPv6 relay option.short
getCode()
Gets the code of this option.byte[]
getData()
Gets the data of this option.short
getLength()
Gets the length of this option.String
toString()
-
Methods inherited from class org.onlab.packet.dhcp.Dhcp6Option
equals, getToStringHelper, hashCode, serialize, setCode, setData, setLength
-
Methods inherited from class org.onlab.packet.BasePacket
clone, getParent, getPayload, resetChecksum, setParent, setPayload
-
-
-
-
Constructor Detail
-
Dhcp6RelayOption
public Dhcp6RelayOption()
Default constructor.
-
Dhcp6RelayOption
public Dhcp6RelayOption(Dhcp6Option dhcp6Option)
Constructs a DHCPv6 relay option with DHCPv6 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
-
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
-
deserializer
public static Deserializer<Dhcp6Option> deserializer()
Gets deserializer for DHCPv6 relay option.- Returns:
- the deserializer
-
toString
public String toString()
- Overrides:
toString
in classDhcp6Option
-
-