Package org.onlab.packet
Class Slow
- java.lang.Object
-
- org.onlab.packet.BasePacket
-
- org.onlab.packet.Slow
-
- All Implemented Interfaces:
IPacket
public class Slow extends BasePacket
Implements ethernet slow protocols.
-
-
Field Summary
Fields Modifier and Type Field Description static int
HEADER_LENGTH
static java.util.Map<java.lang.Byte,Deserializer<? extends IPacket>>
PROTOCOL_DESERIALIZER_MAP
static byte
SUBTYPE_LACP
-
Fields inherited from class org.onlab.packet.BasePacket
parent, payload
-
-
Constructor Summary
Constructors Constructor Description Slow()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Deserializer<Slow>
deserializer()
Deserializer function for Slow packets.boolean
equals(java.lang.Object obj)
byte
getSubtype()
Gets subtype.int
hashCode()
byte[]
serialize()
Sets all payloads parent packet if applicable, then serializes this packet and all payloads.Slow
setSubtype(byte subtype)
Sets subtype.java.lang.String
toString()
-
Methods inherited from class org.onlab.packet.BasePacket
clone, getParent, getPayload, resetChecksum, setParent, setPayload
-
-
-
-
Field Detail
-
HEADER_LENGTH
public static final int HEADER_LENGTH
- See Also:
- Constant Field Values
-
SUBTYPE_LACP
public static final byte SUBTYPE_LACP
- See Also:
- Constant Field Values
-
PROTOCOL_DESERIALIZER_MAP
public static final java.util.Map<java.lang.Byte,Deserializer<? extends IPacket>> PROTOCOL_DESERIALIZER_MAP
-
-
Method Detail
-
getSubtype
public byte getSubtype()
Gets subtype.- Returns:
- subtype
-
setSubtype
public Slow setSubtype(byte subtype)
Sets subtype.- Parameters:
subtype
- the subtype to set- Returns:
- this
-
deserializer
public static Deserializer<Slow> deserializer()
Deserializer function for Slow packets.- Returns:
- deserializer function
-
serialize
public byte[] serialize()
Description copied from interface:IPacket
Sets all payloads parent packet if applicable, then serializes this packet and all payloads.- Returns:
- a byte[] containing this packet and payloads
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classBasePacket
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classBasePacket
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-