Class Dhcp6RelayOption

  • All Implemented Interfaces:
    IPacket

    public final class Dhcp6RelayOption
    extends Dhcp6Option
    Relay option for DHCPv6. Based on RFC-3315.
    • 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 class Dhcp6Option
        Returns:
        the code
      • getLength

        public short getLength()
        Description copied from class: Dhcp6Option
        Gets the length of this option.
        Overrides:
        getLength in class Dhcp6Option
        Returns:
        the length of this option
      • getData

        public byte[] getData()
        Description copied from class: Dhcp6Option
        Gets the data of this option.
        Overrides:
        getData in class Dhcp6Option
        Returns:
        the data of this option
      • deserializer

        public static Deserializer<Dhcp6Option> deserializer()
        Gets deserializer for DHCPv6 relay option.
        Returns:
        the deserializer