Skip to content
Snippets Groups Projects
Commit 8e2aba23 authored by Rob Adams's avatar Rob Adams
Browse files

Merge branch 'master' of github.com:bigswitch/bigswitchcontroller into bigsync

parents 6cac66bd a968cbb6
No related branches found
No related tags found
No related merge requests found
......@@ -1248,7 +1248,10 @@ public class Controller implements IFloodlightProviderService,
}
pktinProcTime.recordEndTimePktIn(sw, m, bc);
} else {
log.warn("Unhandled OF Message: {} from {}", m, sw);
if (m.getType() != OFType.BARRIER_REPLY)
log.warn("Unhandled OF Message: {} from {}", m, sw);
else
log.debug("Received a Barrier Reply, no listeners for it");
}
if ((bContext == null) && (bc != null)) flcontext_free(bc);
......
......@@ -194,7 +194,11 @@ public class OFFlowRemoved extends OFMessage {
this.match.readFrom(data);
this.cookie = data.readLong();
this.priority = data.readShort();
this.reason = OFFlowRemovedReason.values()[(0xff & data.readByte())];
int reasonIndex = (int)(0xff & data.readByte());
if (reasonIndex >= OFFlowRemovedReason.values().length) {
reasonIndex = OFFlowRemovedReason.values().length - 1;
}
this.reason = OFFlowRemovedReason.values()[reasonIndex];
data.readByte(); // pad
this.durationSeconds = data.readInt();
this.durationNanoseconds = data.readInt();
......
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