private void readDataLinkSource(ByteBuffer data, int nxmLen, boolean hasMask) { /* * mask is not allowed in data link source */ if ((nxmLen != 6) || (data.remaining() < 6) || (hasMask)) return; byte[] bytes = new byte[6]; data.get(bytes); super.setDataLayerSource(bytes); this.dlSourceState = MatchFieldState.MATCH_FIELD_ONLY; this.match_len += 10; this.wildcards ^= (1 << 2); // Sync with 0F 1.0 Match }
private void readDataLinkSource(ByteBuffer data, int nxmLen, boolean hasMask) { /* * mask is not allowed in data link source */ if ((nxmLen != 6) || (data.remaining() < 6) || (hasMask)) { return; } byte[] bytes = new byte[6]; data.get(bytes); super.setDataLayerSource(bytes); this.dlSourceState = MatchFieldState.MATCH_FIELD_ONLY; this.match_len += 10; this.wildcards ^= (1 << 2); // Sync with 0F 1.0 Match }
/** * Rewrites the given match according to the current instance. * * @param match * the OpenFlow match */ public void rewriteMatch(final OFMatch match) { final OVXLinkField linkField = OpenVirteXController.getInstance() .getOvxLinkField(); if (linkField == OVXLinkField.MAC_ADDRESS) { match.setDataLayerSource(this.getSrcMac().toBytes()); match.setDataLayerDestination(this.getDstMac().toBytes()); } else if (linkField == OVXLinkField.VLAN) { match.setDataLayerVirtualLan(this.getVlan()); } }
.setDestinationMACAddress( macList.get(1).toBytes()); match.setDataLayerSource(eth.getSourceMACAddress()) .setDataLayerDestination( eth.getDestinationMACAddress());
.getValue(); if (!isIPv6) { ofMatch.setDataLayerSource(srcMac.clone()); wildcards &= ~OFMatch.OFPFW_DL_SRC; } else {