本文整理匯總了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);
}