Class Dhcp6IaNaOption

  • All Implemented Interfaces:
    IPacket

    public final class Dhcp6IaNaOption
    extends Dhcp6Option
    DHCPv6 Identity Association for Non-temporary Addresses Option. Based on RFC-3315
    • Constructor Detail

      • Dhcp6IaNaOption

        public Dhcp6IaNaOption()
        Default constructor.
      • Dhcp6IaNaOption

        public Dhcp6IaNaOption​(Dhcp6Option dhcp6Option)
        Constructs a DHCPv6 IA NA 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.
      • getT1

        public int getT1()
        Gets time 1. The time at which the client contacts the server from which the addresses in the IA_NA were obtained to extend the lifetimes of the addresses assigned to the IA_NA; T1 is a time duration relative to the current time expressed in units of seconds.
        Returns:
        the value of time 1
      • setT1

        public void setT1​(int t1)
        Sets time 1.
        Parameters:
        t1 - the value of time 1
      • getT2

        public int getT2()
        Gets time 2. The time at which the client contacts any available server to extend the lifetimes of the addresses assigned to the IA_NA; T2 is a time duration relative to the current time expressed in units of seconds.
        Returns:
        the value of time 2
      • setT2

        public void setT2​(int t2)
        Sets time 2.
        Parameters:
        t2 - the value of time 2
      • getOptions

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

        public void setOptions​(java.util.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
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class Dhcp6Option