Skip to content
Snippets Groups Projects
Commit 24738ae8 authored by abat's avatar abat
Browse files

Merge into master from pull request #24:

parents 1dce3e86 8cc5d311
No related branches found
No related tags found
No related merge requests found
......@@ -785,16 +785,6 @@ public class Controller
eth);
}
// Print the packet-in for debugging purposes at this point
// The context would have the necessary information for
// the OFMessageFilterManager's getDataToString to work
// for packet-ins.
if (log.isDebugEnabled()) {
String str = messageFilterManager.getDataAsString(sw, m, bc);
log.trace("{}", str);
}
// Get the starting time (overall and per-component) of
// the processing chain for this packet if performance
// monitoring is turned on
......
......@@ -21,6 +21,7 @@ import java.util.Arrays;
import org.jboss.netty.buffer.ChannelBuffer;
import org.openflow.util.U16;
import org.openflow.util.U32;
import org.openflow.util.U8;
/**
......@@ -201,4 +202,10 @@ public class OFPacketIn extends OFMessage {
}
return true;
}
public String toString() {
String myStr = super.toString();
return "packetIn" +
":bufferId=" + U32.f(this.bufferId) + myStr;
}
}
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