|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openflow.protocol.OFMessage
org.openflow.protocol.OFPacketIn
public class OFPacketIn
Represents an ofp_packet_in
Nested Class Summary | |
---|---|
static class |
OFPacketIn.OFPacketInReason
|
Field Summary | |
---|---|
protected int |
bufferId
|
protected long |
cookie
|
protected OFMatch |
match
|
static int |
MINIMUM_LENGTH
|
protected byte[] |
packetData
|
protected OFPacketIn.OFPacketInReason |
reason
|
protected byte |
tableId
|
protected short |
totalLength
|
Fields inherited from class org.openflow.protocol.OFMessage |
---|
length, OFP_VERSION, type, version, xid |
Constructor Summary | |
---|---|
OFPacketIn()
|
Method Summary | |
---|---|
void |
computeLength()
This method is called during the writeTo method for serialization and is expected to set the length of the message. |
boolean |
equals(java.lang.Object obj)
|
int |
getBufferId()
Get buffer_id |
long |
getCookie()
Get cookie |
int |
getInPort()
Get in_port |
OFMatch |
getMatch()
Get match |
byte[] |
getPacketData()
Returns the packet data |
OFPacketIn.OFPacketInReason |
getReason()
Get reason |
byte |
getTableId()
Get tableId |
short |
getTotalLength()
Get total_len |
int |
hashCode()
|
void |
readFrom(java.nio.ByteBuffer data)
Read this message off the wire from the specified ByteBuffer |
OFPacketIn |
setBufferId(int bufferId)
Set buffer_id |
OFPacketIn |
setCookie(long cookie)
Set cookie |
OFPacketIn |
setMatch(OFMatch match)
Set match |
OFPacketIn |
setPacketData(byte[] packetData)
Sets the packet data, and updates the length of this message |
OFPacketIn |
setReason(OFPacketIn.OFPacketInReason reason)
Set reason |
OFPacketIn |
setTableId(byte tableId)
Set tableId |
OFPacketIn |
setTotalLength(short totalLength)
Set total_len |
java.lang.String |
toString()
Returns a summary of the message |
void |
writeTo(java.nio.ByteBuffer data)
Write this message's binary format to the specified ByteBuffer |
Methods inherited from class org.openflow.protocol.OFMessage |
---|
getLength, getLengthU, getType, getVersion, getXid, setLength, setLengthU, setType, setVersion, setXid |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static int MINIMUM_LENGTH
protected int bufferId
protected short totalLength
protected OFPacketIn.OFPacketInReason reason
protected byte tableId
protected long cookie
protected OFMatch match
protected byte[] packetData
Constructor Detail |
---|
public OFPacketIn()
Method Detail |
---|
public int getBufferId()
public OFPacketIn setBufferId(int bufferId)
bufferId
- public long getCookie()
public OFPacketIn setCookie(long cookie)
cookie
- public byte getTableId()
public OFPacketIn setTableId(byte tableId)
tableId
- public OFMatch getMatch()
public OFPacketIn setMatch(OFMatch match)
match
- public byte[] getPacketData()
public OFPacketIn setPacketData(byte[] packetData)
packetData
- public int getInPort()
public OFPacketIn.OFPacketInReason getReason()
public OFPacketIn setReason(OFPacketIn.OFPacketInReason reason)
reason
- public short getTotalLength()
public OFPacketIn setTotalLength(short totalLength)
totalLength
- public void readFrom(java.nio.ByteBuffer data)
OFMessage
readFrom
in class OFMessage
public void writeTo(java.nio.ByteBuffer data)
OFMessage
writeTo
in class OFMessage
public int hashCode()
hashCode
in class OFMessage
public boolean equals(java.lang.Object obj)
equals
in class OFMessage
public java.lang.String toString()
OFMessage
toString
in class OFMessage
public void computeLength()
OFMessage
computeLength
in class OFMessage
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |