Skip to content
Snippets Groups Projects
Commit a551290b authored by Srinivasan Ramasubramanian's avatar Srinivasan Ramasubramanian
Browse files

If the incoming node port is blocked, allow only unicast and BDDP packets to...

If the incoming node port is blocked, allow only unicast and BDDP packets to continue down the processing chain.
parent 2ca047be
No related branches found
No related tags found
No related merge requests found
......@@ -821,14 +821,18 @@ public class DeviceManagerImpl implements IDeviceManagerService, IOFMessageListe
// in this situation.
short pinPort = pi.getInPort();
long pinSw = sw.getId();
if (eth.getEtherType() != Ethernet.TYPE_BDDP &&
topology.isAllowed(pinSw, pinPort) == false) {
if (log.isDebugEnabled()) {
log.debug("deviceManager: Stopping packet as it is coming" +
"in on a port blocked by higher layer on." +
"switch ={}, port={}", new Object[] {sw.getStringId(), pinPort});
if (topology.isAllowed(pinSw, pinPort) == false) {
if (eth.getEtherType() != Ethernet.TYPE_BDDP ||
eth.isMulticast() == false) {
return Command.CONTINUE;
} else {
if (log.isDebugEnabled()) {
log.debug("deviceManager: Stopping packet as it is coming" +
"in on a port blocked by higher layer on." +
"switch ={}, port={}", new Object[] {sw.getStringId(), pinPort});
}
return Command.STOP;
}
return Command.STOP;
}
Command ret = Command.CONTINUE;
......
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