Class Dhcp6ClientIdOption

  • All Implemented Interfaces:
    IPacket

    public final class Dhcp6ClientIdOption
    extends Dhcp6Option
    DHCPv6 Client Identifier Option.
    • Constructor Detail

      • Dhcp6ClientIdOption

        public Dhcp6ClientIdOption()
    • 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
      • setData

        public void setData​(byte[] data)
        Description copied from class: Dhcp6Option
        Sets the data of this option.
        Overrides:
        setData in class Dhcp6Option
        Parameters:
        data - the data to set
      • setDuid

        public void setDuid​(Dhcp6Duid duid)
      • 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