Class Ipcp

  • All Implemented Interfaces:
    org.onlab.packet.IPacket

    public class Ipcp
    extends Ppp
    Implements the IP Control Protocol (IPCP) packet format.
    • 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
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Ppp
      • equals

        public boolean equals​(Object obj)
        Overrides:
        equals in class Ppp