OFOxm<org.projectfloodlight.openflow.types.MacAddress> ethdst = (OFOxm<org.projectfloodlight.openflow.types.MacAddress>) oxm; builder.setEthDst(MacAddress.valueOf(ethdst.getValue().getLong())); break; case ETH_SRC: OFOxm<org.projectfloodlight.openflow.types.MacAddress> ethsrc = (OFOxm<org.projectfloodlight.openflow.types.MacAddress>) oxm; builder.setEthSrc(MacAddress.valueOf(ethsrc.getValue().getLong())); break; case IPV4_DST: OFOxm<org.projectfloodlight.openflow.types.MacAddress> arpsha = (OFOxm<org.projectfloodlight.openflow.types.MacAddress>) oxm; builder.setArpSha(MacAddress.valueOf(arpsha.getValue().getLong())); break; case ARP_SPA:
Masked<org.projectfloodlight.openflow.types.MacAddress> maskedMac = match.getMasked(MatchField.ETH_DST); builder.matchEthDstMasked(MacAddress.valueOf(maskedMac.getValue().getLong()), MacAddress.valueOf(maskedMac.getMask().getLong())); } else { mac = MacAddress.valueOf(match.get(MatchField.ETH_DST).getLong()); builder.matchEthDst(mac); Masked<org.projectfloodlight.openflow.types.MacAddress> maskedMac = match.getMasked(MatchField.ETH_SRC); builder.matchEthSrcMasked(MacAddress.valueOf(maskedMac.getValue().getLong()), MacAddress.valueOf(maskedMac.getMask().getLong())); } else { mac = MacAddress.valueOf(match.get(MatchField.ETH_SRC).getLong()); builder.matchEthSrc(mac); break; case IPV6_ND_SLL: mac = MacAddress.valueOf(match.get(MatchField.IPV6_ND_SLL).getLong()); builder.matchIPv6NDSourceLinkLayerAddress(mac); break; case IPV6_ND_TLL: mac = MacAddress.valueOf(match.get(MatchField.IPV6_ND_TLL).getLong()); builder.matchIPv6NDTargetLinkLayerAddress(mac); break; break; case ARP_SHA: mac = MacAddress.valueOf(match.get(MatchField.ARP_SHA).getLong());