PS_AUTOADJUST
code: 159
# set
<module-index>/<port-index> PS_AUTOADJUST [<stream_index>]
Description
Executing PS_AUTOADJUST will adjust the packet length distribution (PS_PACKETLENGTH
) of the stream:
Set the type of packet length distribution (
PS_PACKETLENGTH
<length_type>
) toFIXED
.Set the lower limit on the packet length (
PS_PACKETLENGTH
<min_val>
) to exactly fit the specified protocol headers, TPLD and FCS (but never set to less than 64).Set the payload type of packets transmitted for the stream (
PS_PAYLOAD
<payload_type>
) toPATTERN
.If necessary, also set the maximum number of header content bytes (
P_MAXHEADERLENGTH <p_maxheaderlength_label>
<max_header_length>
) that can be freely specified for each generated stream of the port to a higher value, if needed to accommodate the header size of the stream (implicitly given by thePS_PACKETHEADER
command).If the needed maximum header length (
P_MAXHEADERLENGTH <p_maxheaderlength_label>
<max_header_length>
) is not possible with the actual number of active streams for the port, the command will fail with<BADVALUE>
.
Actions
set
Parameters
Example
# set
input: 0/1 PS_AUTOADJUST [0]
output: <OK>