Class Dhcp6IaTaOption

  • All Implemented Interfaces:
    IPacket

    public final class Dhcp6IaTaOption
    extends Dhcp6Option
    • Constructor Detail

      • Dhcp6IaTaOption

        public Dhcp6IaTaOption()
        Default constructor.
      • Dhcp6IaTaOption

        public Dhcp6IaTaOption​(Dhcp6Option dhcp6Option)
        Constructs a DHCPv6 IA TA 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
      • getIaId

        public int getIaId()
        Gets Identity Association ID.
        Returns:
        the Identity Association ID
      • setIaId

        public void setIaId​(int iaId)
        Sets Identity Association ID.
        Parameters:
        iaId - the Identity Association ID.
      • getOptions

        public List<Dhcp6Option> getOptions()
        Gets sub-options.
        Returns:
        sub-options of this option
      • setOptions

        public void setOptions​(List<Dhcp6Option> options)
        Sets sub-options.
        Parameters:
        options - the sub-options of this option
      • 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 interface IPacket
        Overrides:
        serialize in class Dhcp6Option
        Returns:
        a byte[] containing this packet and payloads