public class OfmPacketIn extends OpenflowMessage
OpenflowMessage.Headerlength| Constructor and Description |
|---|
OfmPacketIn(OpenflowMessage.Header header,
BufferId bufferId,
BigPortNumber inPort,
BigPortNumber inPhyPort,
int totalLen,
PacketInReason reason,
TableId tableId,
long cookie,
Match match,
byte[] data) |
| 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, lengthpublic OfmPacketIn(OpenflowMessage.Header header, BufferId bufferId, BigPortNumber inPort, BigPortNumber inPhyPort, int totalLen, PacketInReason reason, TableId tableId, long cookie, Match match, byte[] data)
public String toString()
toString in class OpenflowMessagepublic String toDebugString()
OpenflowMessageOpenflowMessage.toString(), but
subclasses are free to override this behavior.toDebugString in interface StructuretoDebugString in class OpenflowMessagepublic void validate()
throws IncompleteMessageException
OpenflowMessageThis 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 OpenflowMessageIncompleteMessageException - 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 © 2014. All Rights Reserved.