本文整理汇总了Java中org.onosproject.net.flow.instructions.L4ModificationInstruction.L4SubType类的典型用法代码示例。如果您正苦于以下问题:Java L4SubType类的具体用法?Java L4SubType怎么用?Java L4SubType使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
L4SubType类属于org.onosproject.net.flow.instructions.L4ModificationInstruction包,在下文中一共展示了L4SubType类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: modTcpSrc
import org.onosproject.net.flow.instructions.L4ModificationInstruction.L4SubType; //导入依赖的package包/类
/**
* Creates a TCP src modification.
*
* @param port the TCP port number to modify to
* @return a L4 modification
*/
public static L4ModificationInstruction modTcpSrc(TpPort port) {
checkNotNull(port, "Src TCP port cannot be null");
return new ModTransportPortInstruction(L4SubType.TCP_SRC, port);
}
示例2: modTcpDst
import org.onosproject.net.flow.instructions.L4ModificationInstruction.L4SubType; //导入依赖的package包/类
/**
* Creates a TCP dst modification.
*
* @param port the TCP port number to modify to
* @return a L4 modification
*/
public static L4ModificationInstruction modTcpDst(TpPort port) {
checkNotNull(port, "Dst TCP port cannot be null");
return new ModTransportPortInstruction(L4SubType.TCP_DST, port);
}
示例3: modUdpSrc
import org.onosproject.net.flow.instructions.L4ModificationInstruction.L4SubType; //导入依赖的package包/类
/**
* Creates a UDP src modification.
*
* @param port the UDP port number to modify to
* @return a L4 modification
*/
public static L4ModificationInstruction modUdpSrc(TpPort port) {
checkNotNull(port, "Src UDP port cannot be null");
return new ModTransportPortInstruction(L4SubType.UDP_SRC, port);
}
示例4: modUdpDst
import org.onosproject.net.flow.instructions.L4ModificationInstruction.L4SubType; //导入依赖的package包/类
/**
* Creates a UDP dst modification.
*
* @param port the UDP port number to modify to
* @return a L4 modification
*/
public static L4ModificationInstruction modUdpDst(TpPort port) {
checkNotNull(port, "Dst UDP port cannot be null");
return new ModTransportPortInstruction(L4SubType.UDP_DST, port);
}