Skip to content
Snippets Groups Projects
Commit e7c7e97f authored by Kuang-Ching Wang's avatar Kuang-Ching Wang
Browse files

Merge pull request #381 from moomindani/master

Refactoring Hub Module
parents 5a1f3d29 68cd1333
No related branches found
No related tags found
No related merge requests found
......@@ -78,7 +78,7 @@ public class Hub implements IFloodlightModule, IOFMessageListener {
po.setActionsLength((short) OFActionOutput.MINIMUM_LENGTH);
// set data if is is included in the packetin
if (pi.getBufferId() == 0xffffffff) {
if (pi.getBufferId() == OFPacketOut.BUFFER_ID_NONE) {
byte[] packetData = pi.getPacketData();
po.setLength(U16.t(OFPacketOut.MINIMUM_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