PEF_ANYCONFIG#
code: 1729
# set
<module-index>/<port-index> PEF_ANYCONFIG [<flow_index>, <filter_type>] <position> <value> <mask>
# get
<module-index>/<port-index> PEF_ANYCONFIG [<flow_index>, <filter_type>] ?
Description#
Basic mode only. Defines the ANY field filter configuration. The “ANY field” filter will match 6 consecutive bytes in the incoming packets at a programmable offset. Applying a mask, allows to only filter based on selected bits within the 6 bytes.
Note
For set
, the only allowed filter_type
is shadow-copy. .
Actions#
set, get
Parameters#
position
: short integer, specifies the start position of the ANY field. Default value: 0, Range:0-127value
: hex6, specifying the six bytes of the field. Default value: 0x000000000000mask
: hex6, specifying the six bytes of the field. Default value: 0xFFFFFFFFFFFF
Example#
# set
input: 0/1 PEF_ANYCONFIG [1,0] 0 0x000000000000 0xFFFFFFFFFFFF
output: <OK>
# get
input: 0/1 PEF_ANYCONFIG [1,0] ?
output: 0/1 PEF_ANYCONFIG [1,0] 0 0x000000000000 0xFFFFFFFFFFFF