P4G_L4_PROTOCOL

# set
<module-index>/<port-index> P4G_L4_PROTOCOL [<group_index>] <protocol_type>

# get
<module-index>/<port-index> P4G_L4_PROTOCOL [<group_index>] ?

Description

Specifies either TCP or UDP as Layer 4 protocol.

Actions

set, get

Parameters

protocol_type: byte, the Layer 4 protocol
  • TCP = 0

  • UDP = 1

Example

# set
input:  0/1 P4G_L4_PROTOCOL [0] TCP
output: <OK>

# get
input:  0/1 P4G_L4_PROTOCOL [0] ?
output: 0/1 P4G_L4_PROTOCOL [0] TCP