Class Ppp

  • All Implemented Interfaces:
    org.onlab.packet.IPacket
    Direct Known Subclasses:
    GenericPpp, Ipcp

    public abstract class Ppp
    extends org.onlab.packet.BasePacket
    Implements a generic PPP header.
    • Constructor Detail

      • Ppp

        public Ppp()
    • Method Detail

      • getCode

        public byte getCode()
        Gets the LCP code.
        Returns:
        the LCP code
      • setCode

        public void setCode​(byte code)
        Sets the LCP code.
        Parameters:
        code - the LCP code to set
      • getIdentifier

        public byte getIdentifier()
        Gets the LCP identifier.
        Returns:
        the LCP identifier
      • setIdentifier

        public void setIdentifier​(byte identifier)
        Sets the LCP identifier.
        Parameters:
        identifier - the LCP identifier to set
      • getLength

        public short getLength()
        Gets the length.
        Returns:
        the length
      • setLength

        public void setLength​(short length)
        Sets the length.
        Parameters:
        length - the length to set
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class org.onlab.packet.BasePacket
      • equals

        public boolean equals​(Object obj)
        Overrides:
        equals in class org.onlab.packet.BasePacket