Class Dhcp6ClientDataOption

  • All Implemented Interfaces:
    IPacket

    public final class Dhcp6ClientDataOption
    extends Dhcp6Option
    DHCPv6 Client Data Option.
    • Constructor Detail

      • Dhcp6ClientDataOption

        public Dhcp6ClientDataOption​(Dhcp6Option dhcp6Option)
    • 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
      • getOptions

        public java.util.List<Dhcp6Option> getOptions()
      • 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