@SuppressWarnings("unchecked") OFOxm<IPv4Address> ip4dst = (OFOxm<IPv4Address>) oxm; builder.setIpDst(Ip4Address.valueOf(ip4dst.getValue().getInt())); break; case IPV4_SRC: @SuppressWarnings("unchecked") OFOxm<IPv4Address> ip4src = (OFOxm<IPv4Address>) oxm; builder.setIpSrc(Ip4Address.valueOf(ip4src.getValue().getInt())); break; case MPLS_LABEL: @SuppressWarnings("unchecked") OFOxm<IPv4Address> arpspa = (OFOxm<IPv4Address>) oxm; builder.setArpSpa(Ip4Address.valueOf(arpspa.getValue().getInt())); break; case ARP_THA:
case TUNNEL_IPV4_DST: OFOxmTunnelIpv4Dst tunnelIpv4Dst = (OFOxmTunnelIpv4Dst) oxm; return new NiciraSetTunnelDst(Ip4Address.valueOf(tunnelIpv4Dst.getValue().getInt()));
OFActionSetNwDst nwdst = (OFActionSetNwDst) act; IPv4Address di = nwdst.getNwAddr(); builder.setIpDst(Ip4Address.valueOf(di.getInt())); break; case SET_NW_SRC: OFActionSetNwSrc nwsrc = (OFActionSetNwSrc) act; IPv4Address si = nwsrc.getNwAddr(); builder.setIpSrc(Ip4Address.valueOf(si.getInt())); break; case EXPERIMENTER:
Masked<IPv4Address> maskedIp = match.getMasked(MatchField.IPV4_SRC); ip4Prefix = Ip4Prefix.valueOf( maskedIp.getValue().getInt(), maskedIp.getMask().asCidrMaskLength()); } else { ip4Prefix = Ip4Prefix.valueOf( match.get(MatchField.IPV4_SRC).getInt(), Ip4Prefix.MAX_MASK_LENGTH); Masked<IPv4Address> maskedIp = match.getMasked(MatchField.IPV4_DST); ip4Prefix = Ip4Prefix.valueOf( maskedIp.getValue().getInt(), maskedIp.getMask().asCidrMaskLength()); } else { ip4Prefix = Ip4Prefix.valueOf( match.get(MatchField.IPV4_DST).getInt(), Ip4Prefix.MAX_MASK_LENGTH); break; case ARP_SPA: ip = Ip4Address.valueOf(match.get(MatchField.ARP_SPA).getInt()); builder.matchArpSpa(ip); break; break; case ARP_TPA: ip = Ip4Address.valueOf(match.get(MatchField.ARP_TPA).getInt()); builder.matchArpTpa(ip); break;