Package org.opencord.bng.packets
Class Ppp
- java.lang.Object
-
- org.onlab.packet.BasePacket
-
- org.opencord.bng.packets.Ppp
-
- All Implemented Interfaces:
org.onlab.packet.IPacket
- Direct Known Subclasses:
GenericPpp,Ipcp
public abstract class Ppp extends org.onlab.packet.BasePacketImplements a generic PPP header.
-
-
Constructor Summary
Constructors Constructor Description Ppp()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)bytegetCode()Gets the LCP code.bytegetIdentifier()Gets the LCP identifier.shortgetLength()Gets the length.inthashCode()voidsetCode(byte code)Sets the LCP code.voidsetIdentifier(byte identifier)Sets the LCP identifier.voidsetLength(short length)Sets the length.StringtoString()-
Methods inherited from class org.onlab.packet.BasePacket
clone, getParent, getPayload, resetChecksum, setParent, setPayload
-
-
-
-
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:
hashCodein classorg.onlab.packet.BasePacket
-
equals
public boolean equals(Object obj)
- Overrides:
equalsin classorg.onlab.packet.BasePacket
-
-