question: protected void addToPortMap ( IOFSwitch sw , MacAddress mac , VlanVid vlan , OFPort portVal ) { Map < MacVlanPair , OFPort > swMap = macVlanToSwitchPortMap . get ( sw ) ; if ( vlan == VlanVid . FULL_MASK ) { vlan = VlanVid . ofVlan ( 0 ) ; } if ( swMap == null ) { swMap = Collections . synchronizedMap ( new LRULinkedHashMap < MacVlanPair , OFPort > ( MAX_MACS_PER_SWITCH ) ) ; macVlanToSwitchPortMap . put ( sw , swMap ) ; } swMap . put ( new MacVlanPair ( mac , vlan ) , portVal ) ; }
target:  Adds a host to the MAC/VLAN->SwitchPort mapping