Class Dhcp6Option

    • Constructor Detail

      • Dhcp6Option

        public Dhcp6Option()
        Default constructor.
      • Dhcp6Option

        public Dhcp6Option​(Dhcp6Option dhcp6Option)
        Constructs a DHCPv6 option based on information from other DHCPv6 option.
        Parameters:
        dhcp6Option - other DHCPv6 option
    • Method Detail

      • setCode

        public void setCode​(short code)
        Sets the code of this option.
        Parameters:
        code - the code to set
      • setData

        public void setData​(byte[] data)
        Sets the data of this option.
        Parameters:
        data - the data to set
      • setLength

        public void setLength​(short length)
        Sets length of this option.
        Parameters:
        length - the length to set
      • getCode

        public short getCode()
        Gets the code of this option.
        Returns:
        the code
      • getLength

        public short getLength()
        Gets the length of this option.
        Returns:
        the length of this option
      • getData

        public byte[] getData()
        Gets the data of this option.
        Returns:
        the data of this option
      • deserializer

        public static Deserializer<Dhcp6Option> deserializer()
        Gets deserializer of DHCPv6 option.
        Returns:
        the deserializer of DHCPv6 option
      • serialize

        public byte[] serialize()
        Description copied from interface: IPacket
        Sets all payloads parent packet if applicable, then serializes this packet and all payloads.
        Returns:
        a byte[] containing this packet and payloads
      • getToStringHelper

        protected com.google.common.base.MoreObjects.ToStringHelper getToStringHelper()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • equals

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