PEF_IPV4DSCP#

code: 1717

# set
<module-index>/<port-index> PEF_IPV4DSCP [<flow_index>, <filter_type>] <use> <value> <mask>

# get
<module-index>/<port-index> PEF_IPV4DSCP [<flow_index>, <filter_type>] ?

Description#

Basic mode only. Defines if IPv4 DSCP/TOS settings used for the IPv4 filter.

Note

For set, the only allowed filter_type is shadow-copy.

Actions#

set, get

Parameters#

  1. use: byte, specifies the use of IPv4 DSCP/TOS information.

  • OFF = 0

  • ON = 1

  1. value: short integer, specifying the value of the IPv4 DSCP/TOS in the upper 6 bits. value[7:2] = DSCP/TOS, value[1:0] = reserved (must be zero). Default vaule: 0

  2. mask: hex, specifying the filter mask of the value in the upper 6 bits. mask[7:2] = DSCP/TOS mask, mask[1:0] = reserved (must be zero). Default value: 0xFC

Example#

# set
input:  0/1 PEF_IPV4DSCP [1,0] OFF 0 0xFC
output: <OK>

# get
input:  0/1 PEF_IPV4DSCP [1,0] ?
output: 0/1 PEF_IPV4DSCP [1,0] OFF 0 0xFC