public class OfmPacketIn extends OpenflowMessage
length
Modifier and Type | Method and Description |
---|---|
BufferId |
getBufferId()
ID assigned by datapath (BufferId.NO_BUFFER if none); since 1.0.
|
long |
getCookie()
Returns the cookie of the flow entry that caused the packet to be
sent to the controller; Since 1.3.
|
byte[] |
getData()
Returns a copy of the packet data; Since 1.0.
|
BigPortNumber |
getInPhyPort()
Returns the physical port on which the frame was received; Since 1.1.
|
BigPortNumber |
getInPort()
Returns the port on which the frame was received; Since 1.0.
|
Match |
getMatch()
Returns the packet metadata; Since 1.2.
|
PacketInReason |
getReason()
Returns the reason the packet is being sent; Since 1.0.
|
TableId |
getTableId()
Returns the ID of the table that was looked up; Since 1.1.
|
int |
getTotalLen()
Returns the total length value from the in-port message header;
Since 1.0.
|
String |
toDebugString()
Returns a string representation useful for debugging.
|
String |
toString() |
void |
validate()
Validates this message for completeness and throws an exception
if the message is considered "not complete".
|
decodeHeader, getType, getVersion, getXid, hex, hex, length
public String toString()
toString
in class OpenflowMessage
public String toDebugString()
OpenflowMessage
OpenflowMessage.toString()
, but
subclasses are free to override this behavior.toDebugString
in interface Structure
toDebugString
in class OpenflowMessage
public void validate() throws IncompleteMessageException
OpenflowMessage
This default implementation does nothing, i.e. default behavior is that messages are considered complete.
Subclasses should override this method to check that mandatory fields or other internal state is present, throwing an exception if it is not.
validate
in class OpenflowMessage
IncompleteMessageException
- if the message is not completepublic BufferId getBufferId()
public BigPortNumber getInPort()
public BigPortNumber getInPhyPort()
public int getTotalLen()
public PacketInReason getReason()
public TableId getTableId()
public long getCookie()
public Match getMatch()
public byte[] getData()
Copyright © 2015. All Rights Reserved.