Skip to content
Snippets Groups Projects
Commit c6fff535 authored by Ryan Izard's avatar Ryan Izard
Browse files

Fixed a small bug in LearningSwitch.java. Fixed a typo in a comment in ForwardingBase.java.

parent 919fc9f3
No related branches found
No related tags found
No related merge requests found
......@@ -173,7 +173,7 @@ public class LearningSwitch
*/
public OFPort getFromPortMap(IOFSwitch sw, MacAddress mac, VlanVid vlan) {
if (vlan == VlanVid.FULL_MASK) {
vlan = VlanVid.FULL_MASK;
vlan = VlanVid.ofVlan(0);
}
Map<MacVlanPair, OFPort> swMap = macVlanToSwitchPortMap.get(sw);
if (swMap != null) {
......
......@@ -191,7 +191,7 @@ public abstract class ForwardingBase implements IOFMessageListener {
* written to the switch
* @param flowModCommand flow mod. command to use, e.g. OFFlowMod.OFPFC_ADD,
* OFFlowMod.OFPFC_MODIFY etc.
* @return srcSwitchIincluded True if the source switch is included in this route
* @return srcSwitchIncluded True if the source switch is included in this route
*/
@LogMessageDocs({
@LogMessageDoc(level="WARN",
......
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