PM_PROTOCOL#
code: 203
# set
<module-index>/<port-index> PM_PROTOCOL [<match_term_index>] <segments>
# get
<module-index>/<port-index> PM_PROTOCOL [<match_term_index>] ?
Description#
The protocol segments assumed on the packets received on the port. This is
mainly for information purposes, and helps you identify which portion of the
packet header is being matched. The actual value definition of the match
position is specified with PM_POSITION
.
Actions#
set, get
Parameters#
segments
: byte list, a number specifying a built-in protocol segment: Uses the same coded values as the PS_HEADERPROTOCOL parameter
ETHERNET = 1
VLAN = 2
ARP = 3
IP = 4
IPV6 = 5
UDP = 6
TCP = 7
LLC = 8
SNAP = 9
GTP = 10
ICMP = 11
RTP = 12
RTCP = 13
STP = 14
SCTP = 15
MACCTRL = 16
MPLS = 17
PBBTAG = 18
FCOE = 19
FC = 20
FCOETAIL = 21
IGMPV3L0 = 22
IGMPV3L1 = 23
UDPCHECK = 24
IGMPV2 = 25
MPLS_TP_OAM = 26
GRE_NOCHECK = 27
GRE_CHECK = 28
TCPCHECK = 29
GTPV1L0 = 30
GTPV1L1 = 31
GTPV2L0 = 32
GTPV2L1 = 33
IGMPV1 = 34
PWETHCTRL = 35
VXLAN = 36
ETHERNET_8023 = 37
NVGRE = 38
DHCPV4 = 39
GENEVE = 40
XENA_TPLD = 41
XENA_TPLD_PI = 42
XENA_MICROTPLD = 43
ETHERNET_FCS = 44
MACCTRLPFC = 45
ECPRI = 46
ROE = 47
ETHERTYPE = 48
-n (n bytes custom segment)
Example#
# set
input: 0/1 PM_PROTOCOL [0] ETHERNET VLAN IP -4
output: <OK>
# get
input: 0/1 PM_PROTOCOL [0] ?
output: 0/1 PM_PROTOCOL [0] ETHERNET VLAN IP -4