Package org.onlab.packet
Class IP
- java.lang.Object
-
- org.onlab.packet.BasePacket
-
- org.onlab.packet.IP
-
- All Implemented Interfaces:
IPacket
public abstract class IP extends BasePacket
Implements IP packet format.
-
-
Field Summary
-
Fields inherited from class org.onlab.packet.BasePacket
parent, payload
-
-
Constructor Summary
Constructors Constructor Description IP()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static Deserializer<? extends IP>
deserializer()
Deserializer function for IP packets.abstract byte
getVersion()
Gets IP version number.abstract IP
setVersion(byte version)
Sets IP version number.-
Methods inherited from class org.onlab.packet.BasePacket
clone, equals, getParent, getPayload, hashCode, resetChecksum, setParent, setPayload
-
-
-
-
Method Detail
-
getVersion
public abstract byte getVersion()
Gets IP version number.- Returns:
- IP version number
-
setVersion
public abstract IP setVersion(byte version)
Sets IP version number.- Parameters:
version
- the version to set- Returns:
- IP class
-
deserializer
public static Deserializer<? extends IP> deserializer()
Deserializer function for IP packets.- Returns:
- deserializer function
-
-