Skip to content
Snippets Groups Projects
Commit 68cd1333 authored by Noritaka Sekiyama's avatar Noritaka Sekiyama
Browse files

replace 0xffffffff with OFPacketOut.BUFFER_ID_NONE

parent 5a1f3d29
No related branches found
No related tags found
No related merge requests found
...@@ -78,7 +78,7 @@ public class Hub implements IFloodlightModule, IOFMessageListener { ...@@ -78,7 +78,7 @@ public class Hub implements IFloodlightModule, IOFMessageListener {
po.setActionsLength((short) OFActionOutput.MINIMUM_LENGTH); po.setActionsLength((short) OFActionOutput.MINIMUM_LENGTH);
// set data if is is included in the packetin // set data if is is included in the packetin
if (pi.getBufferId() == 0xffffffff) { if (pi.getBufferId() == OFPacketOut.BUFFER_ID_NONE) {
byte[] packetData = pi.getPacketData(); byte[] packetData = pi.getPacketData();
po.setLength(U16.t(OFPacketOut.MINIMUM_LENGTH po.setLength(U16.t(OFPacketOut.MINIMUM_LENGTH
+ po.getActionsLength() + packetData.length)); + po.getActionsLength() + packetData.length));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment