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 ...@@ -173,7 +173,7 @@ public class LearningSwitch
*/ */
public OFPort getFromPortMap(IOFSwitch sw, MacAddress mac, VlanVid vlan) { public OFPort getFromPortMap(IOFSwitch sw, MacAddress mac, VlanVid vlan) {
if (vlan == VlanVid.FULL_MASK) { if (vlan == VlanVid.FULL_MASK) {
vlan = VlanVid.FULL_MASK; vlan = VlanVid.ofVlan(0);
} }
Map<MacVlanPair, OFPort> swMap = macVlanToSwitchPortMap.get(sw); Map<MacVlanPair, OFPort> swMap = macVlanToSwitchPortMap.get(sw);
if (swMap != null) { if (swMap != null) {
......
...@@ -191,7 +191,7 @@ public abstract class ForwardingBase implements IOFMessageListener { ...@@ -191,7 +191,7 @@ public abstract class ForwardingBase implements IOFMessageListener {
* written to the switch * written to the switch
* @param flowModCommand flow mod. command to use, e.g. OFFlowMod.OFPFC_ADD, * @param flowModCommand flow mod. command to use, e.g. OFFlowMod.OFPFC_ADD,
* OFFlowMod.OFPFC_MODIFY etc. * 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({ @LogMessageDocs({
@LogMessageDoc(level="WARN", @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