if (fm.getMatch().getWildcards() == OFMatch.OFPFW_ALL) { List<PhysicalSwitch> pList = this.vswitch.getMap() .getPhysicalSwitches(this.vswitch);
/** * Checks for "ANY" values that should be wildcards but aren't, such as * NW_SRC/DST 0.0.0.0, and TCP/UDP port 0. * * @param omatch * The OFMatch of the FlowMod we are comparing entries against * @param owcard * The wildcard field of the FlowMod. * @return the modified wildcard value (a copy). */ private int convertToWcards(OFMatch omatch) { int owcard = omatch.getWildcards(); if (omatch.getNetworkDestination() == 0) { owcard |= OFMatch.OFPFW_NW_DST_ALL | OFMatch.OFPFW_NW_DST_MASK; } if (omatch.getNetworkSource() == 0) { owcard |= OFMatch.OFPFW_NW_SRC_ALL | OFMatch.OFPFW_NW_SRC_MASK; } if (omatch.getNetworkProtocol() == 0) { owcard |= OFMatch.OFPFW_NW_PROTO; } if (omatch.getTransportDestination() == 0) { owcard |= OFMatch.OFPFW_TP_DST; } if (omatch.getTransportSource() == 0) { owcard |= OFMatch.OFPFW_TP_SRC; } return owcard; }
if ((this.match.getWildcardObj().isFull() || this.match.getWildcards() == -1) && this.outPort == OFPort.OFPP_NONE.getValue()) { FlowTable ft = sw.getFlowTable();
this.setWildcards(match.getWildcards());
int length = 0; if ((this.match.getWildcardObj().isFull() || this.match.getWildcards() == -1) // the
/** * Instantiates a new OVXmatch from an OFMatch instance. * * @param match * the match */ public OVXMatch(final OFMatch match) { this.wildcards = match.getWildcards(); this.inputPort = match.getInputPort(); this.dataLayerSource = match.getDataLayerSource(); this.dataLayerDestination = match.getDataLayerDestination(); this.dataLayerVirtualLan = match.getDataLayerVirtualLan(); this.dataLayerVirtualLanPriorityCodePoint = match .getDataLayerVirtualLanPriorityCodePoint(); this.dataLayerType = match.getDataLayerType(); this.networkTypeOfService = match.getNetworkTypeOfService(); this.networkProtocol = match.getNetworkProtocol(); this.networkSource = match.getNetworkSource(); this.networkDestination = match.getNetworkDestination(); this.transportSource = match.getTransportSource(); this.transportDestination = match.getTransportDestination(); this.cookie = 0; this.pktData = null; }
int wcard = this.match.getWildcards() & (~OFMatch.OFPFW_IN_PORT); this.match.setWildcards(wcard);
match.getTransportDestination()); jGen.writeNumberField("transportSource", match.getTransportSource()); jGen.writeNumberField("wildcards", match.getWildcards()); jGen.writeEndObject();
if ((match.getWildcards() & OFMatch.OFPFW_DL_VLAN_PCP) == 0) { this.setDataLayerVirtualLanPriorityCodePoint( match.getDataLayerVirtualLanPriorityCodePoint(), (byte) 0); this.setWildcards(match.getWildcards());
vlan)); if ((ofMatch.getWildcards() & OFMatch.OFPFW_DL_VLAN_PCP) == 0) { salMatch.setField(MatchType.DL_VLAN_PR, ofMatch .getDataLayerVirtualLanPriorityCodePoint());
int twcard = tmatch.getWildcards(); int owcard = this.convertToWcards(omatch);