PS_MODIFIEREXTRANGE

code: 167

# set
<module-index>/<port-index> PS_MODIFIEREXTRANGE [<stream_index>, <modifier_index>] <min_val> <step> <max_val>

# get
<module-index>/<port-index> PS_MODIFIEREXTRANGE [<stream_index>, <modifier_index>] ?

Description

Range specification for an extended packet modifier for a stream header, specifying which values the modifier should take on. This applies only to incrementing and decrementing modifiers; random modifiers always produce every possible bit pattern. The range is specified as a three values: mix, step, and max, where max must be equal to min plus a multiple of step. Note that when “decrement” is specified in PS_MODIFIEREXT as the action, the value sequence will begin with the max value instead of the min value and decrement from there: {max, max-1, max-2, …., min, max, max-1…}.

Actions

set, get

Parameters

  1. min_val: integer, the minimum modifier value, fixed to 0.

  2. step: integer, the increment between modifier values, must be 1,2,or 4

  3. max_val: integer, the maximum modifier value, fixed to 65535.

Example

# set
input:  0/1 PS_MODIFIEREXTRANGE [0, 0] 0 1 65535
output: <OK>

# get
input:  0/1 PS_MODIFIEREXTRANGE [0, 0] ?
output: 0/1 PS_MODIFIEREXTRANGE [0, 0] 0 1 65535