actionList.add(new SetNwSrc(NetUtils.parseInetAddress(sstr.group(1)))); continue;
switch (action.getType()) { case SET_NW_SRC: if (((SetNwSrc) action).getAddress() instanceof Inet6Address) { return true;
} else if (action instanceof SetNwSrc) { SetNwSrc ans = (SetNwSrc) action; actions.append(action.getType().toString()).append(" = ").append(ans.getAddressAsString()).append("<br>"); } else if (action instanceof SetNwDst) { SetNwDst and = (SetNwDst) action;
actionList.add(new SetNwSrc(InetAddress.getByName("2.2.2.2"))); actionList.add(new SetNwDst(InetAddress.getByName("1.1.1.1"))); } catch (UnknownHostException e) {
private static SetNwSrcActionCase _toAction(final SetNwSrc sourceAction) { return new SetNwSrcActionCaseBuilder() .setSetNwSrcAction(new SetNwSrcActionBuilder().setAddress(MDFlowMapping.toInetAddress(sourceAction.getAddress())).build()) .build(); }
match.setField(MatchType.TP_DST, source.getPort()); actions.add(new SetNwSrc(InetAddress.getByName(dest.getIp()))); actions.add(new SetDlSrc(destMachineMac));
case SET_NW_SRC: actionMatch.setField(MatchType.NW_SRC, ((SetNwSrc) action) .getAddress()); break; case SET_NW_DST:
targetAction.add(new SetNwSrc(inetAddress));
OFActionNetworkLayerSource ofAction = new OFActionNetworkLayerSource(); ofAction.setNetworkAddress(NetUtils.byteArray4ToInt(a .getAddress().getAddress())); actionsList.add(ofAction); actionsLength += OFActionNetworkLayerAddress.MINIMUM_LENGTH;
logger.error("", e); salAction = new SetNwSrc(ip); } else if (ofAction instanceof OFActionNetworkLayerDestination) { byte addr[] = BigInteger.valueOf(