Class PppoeTlvTag


  • public class PppoeTlvTag
    extends Object
    Implements the PPPoE Type-Length-Value TAGs.
    • Constructor Detail

      • PppoeTlvTag

        public PppoeTlvTag()
    • Method Detail

      • getTagType

        public short getTagType()
        Gets the TLV TAG type.
        Returns:
        the TLV TAG type
      • setTagType

        public PppoeTlvTag setTagType​(short tagType)
        Sets the TLV TAG type.
        Parameters:
        tagType - the type to set
        Returns:
        this
      • getLength

        public short getLength()
        Gets the length, number of bytes of value field.
        Returns:
        the length
      • setLength

        public PppoeTlvTag setLength​(short length)
        Sets the length.
        Parameters:
        length - the length to set excluded the header length
        Returns:
        this
      • getValue

        public byte[] getValue()
        The TLV value.
        Returns:
        the value
      • setValue

        public PppoeTlvTag setValue​(byte[] value)
        Set the TLV value.
        Parameters:
        value - the value to set
        Returns:
        this
      • serialize

        public byte[] serialize()
      • deserialize

        public PppoeTlvTag deserialize​(ByteBuffer bb)
                                throws org.onlab.packet.DeserializationException
        Throws:
        org.onlab.packet.DeserializationException
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object