Package org.opencord.bng.packets
Class Ipcp
- java.lang.Object
-
- org.onlab.packet.BasePacket
-
- org.opencord.bng.packets.Ppp
-
- org.opencord.bng.packets.Ipcp
-
- All Implemented Interfaces:
org.onlab.packet.IPacket
public class Ipcp extends Ppp
Implements the IP Control Protocol (IPCP) packet format.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static org.onlab.packet.Deserializer<Ipcp>deserializer()Deserializer function for IPCP packets.booleanequals(Object obj)org.onlab.packet.IpAddressgetIpAddress()Gets the IP address TLV field as an IpAddress object.PppTlvgetIpAddressTlv()Gets the IP Address TLV field.List<PppTlv>getIpcpTlvList()Gets the TLV field list.inthashCode()byte[]serialize()IpcpsetIpAddressTlv(PppTlv ipaddresstlv)Sets the IP address TLV field.StringtoString()-
Methods inherited from class org.opencord.bng.packets.Ppp
getCode, getIdentifier, getLength, setCode, setIdentifier, setLength
-
-
-
-
Field Detail
-
CONF_REQ
public static final byte CONF_REQ
- See Also:
- Constant Field Values
-
ACK
public static final byte ACK
- See Also:
- Constant Field Values
-
NAK
public static final byte NAK
- See Also:
- Constant Field Values
-
-
Method Detail
-
getIpAddressTlv
public PppTlv getIpAddressTlv()
Gets the IP Address TLV field.- Returns:
- the IP Address TLV field if present, null otherwise
-
getIpAddress
public org.onlab.packet.IpAddress getIpAddress()
Gets the IP address TLV field as an IpAddress object.- Returns:
- The IP address TLV field as IpAddress object, it will be address 0 if no TLV address is present in the packet
-
setIpAddressTlv
public Ipcp setIpAddressTlv(PppTlv ipaddresstlv)
Sets the IP address TLV field.- Parameters:
ipaddresstlv- the IP address TLV to set- Returns:
- this
-
getIpcpTlvList
public List<PppTlv> getIpcpTlvList()
Gets the TLV field list.- Returns:
- the IPCP TLV field list
-
serialize
public byte[] serialize()
-
deserializer
public static org.onlab.packet.Deserializer<Ipcp> deserializer()
Deserializer function for IPCP packets.- Returns:
- deserializer function
-
-