Class Dhcp6CLTOption

  • All Implemented Interfaces:
    IPacket

    public final class Dhcp6CLTOption
    extends Dhcp6Option
    • 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 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
      • 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 interface IPacket
        Overrides:
        serialize in class Dhcp6Option
        Returns:
        a byte[] containing this packet and payloads