public SetTpSrc(int port) { type = ActionType.SET_TP_SRC; this.port = port; checkValue(port); }
private static SetTpSrcActionCase _toAction(final SetTpSrc sourceAction) { return new SetTpSrcActionCaseBuilder() .setSetTpSrcAction(new SetTpSrcActionBuilder().setPort(new PortNumber(sourceAction.getPort())).build()) .build(); }
actionList.add(new SetTpSrc(Integer.valueOf(sstr.group(1)))); continue;
} else if (action instanceof SetTpSrc) { SetTpSrc ads = (SetTpSrc) action; actions.append(action.getType().toString()).append(" = ").append(ads.getPort()).append("<br>"); } else if (action instanceof SetTpDst) { SetTpDst atd = (SetTpDst) action;
actionList.add(new SetTpSrc(4201)); actionList.add(new SetTpDst(8080));
case SET_TP_SRC: actionMatch.setField(MatchType.TP_SRC, ((Integer) ((SetTpSrc) action).getPort()).shortValue()); break; case SET_TP_DST:
Integer portValue = port.getValue(); if (port.getValue() != null) { targetAction.add(new SetTpSrc(portValue));
SetTpSrc a = (SetTpSrc) action; OFActionTransportLayerSource ofAction = new OFActionTransportLayerSource(); ofAction.setTransportPort(Integer.valueOf(a.getPort()) .shortValue()); actionsList.add(ofAction);
.getTransportPort(); int intPort = NetUtils.getUnsignedShort(port); salAction = new SetTpSrc(intPort); } else if (ofAction instanceof OFActionTransportLayerDestination) { Short port = ((OFActionTransportLayerDestination) ofAction)