private void postprocessWildCardInfo() { // Sync with 0F 1.0 Match if (super.getDataLayerType() == 0x800) { if (((this.wildcards >> 8) & 0x3f) == 0x3f) { // ipv4 src processing this.wildcards ^= (((1 << 5) - 1) << 8); } if (((this.wildcards >> 14) & 0x3f) == 0x3f) { // ipv4 dest processing this.wildcards ^= (((1 << 5) - 1) << 14); } } }
private void postprocessWildCardInfo() { // Sync with 0F 1.0 Match if (super.getDataLayerType() == 0x800) { if (((this.wildcards >> 8) & 0x3f) == 0x3f) { //ipv4 src processing this.wildcards ^= (((1 << 5) - 1) << 8); } if (((this.wildcards >> 14) & 0x3f) == 0x3f) { //ipv4 dest processing this.wildcards ^= (((1 << 5) - 1) << 14); } } else { this.wildcards = 0; } }
private void learnAddresses(final OFMatch match, final Mappable map) { if (match.getDataLayerType() == Ethernet.TYPE_IPV4 || match.getDataLayerType() == Ethernet.TYPE_ARP) { if (!match.getWildcardObj().isWildcarded(Flag.NW_SRC)) { IPMapper.getPhysicalIp(this.tenantId, match.getNetworkSource()); } if (!match.getWildcardObj().isWildcarded(Flag.NW_DST)) { IPMapper.getPhysicalIp(this.tenantId, match.getNetworkDestination()); } } }
if (this.getDataLayerType() != (short) 0x8100) { // need cast to avoid switch (this.getDataLayerType()) { case 0x0800:
if (match.getDataLayerType() != 0) { this.setDataLayerType(match.getDataLayerType(), (short) 0); } else { this.dataLayerType = 0;
fm.setCookie(cookie << 32); if (fm.getMatch().getDataLayerType() == Ethernet.TYPE_IPV4) { IPMapper.rewriteMatch(this.tenantId, fm.getMatch());
/** * 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; }
if (match.getDataLayerType() == Ethernet.TYPE_IPV4 || match.getDataLayerType() == Ethernet.TYPE_ARP) { PhysicalIPAddress srcIP = new PhysicalIPAddress( match.getNetworkSource()); if (match.getDataLayerType() == Ethernet.TYPE_ARP) { log.warn("Inconsistency in OVXMap? : {}", e); } else if (match.getDataLayerType() == Ethernet.TYPE_IPV4) { try { final IPv4 ip = (IPv4) eth.getPayload(); match.getDataLayerType()); this.installDropRule(sw, match); return;
@Override public void devirtualize(final OVXSwitch sw) { if (this.match.getDataLayerType() == Ethernet.TYPE_LLDP) { return;
if (fm.getMatch().getDataLayerType() == Ethernet.TYPE_IPV4) { IPMapper.rewriteMatch(this.getSrcPort().getTenantId(), fm.getMatch());
jGen.writeStringField("dataLayerSource", HexString.toHexString(match.getDataLayerSource())); String dataType = Integer.toHexString(match.getDataLayerType()); while (dataType.length() < 4) { dataType = "0".concat(dataType);
if (match.getDataLayerType() != 0) { this.setDataLayerType(match.getDataLayerType(), (short) 0); } else { this.dataLayerType = 0;
dstMac.clone())); if (ofMatch.getDataLayerType() != 0) { salMatch.setField(new MatchField(MatchType.DL_TYPE, ofMatch.getDataLayerType()));
tmatch.getDataLayerType(), omatch.getDataLayerType())) { return DISJOINT;