
370
action. For modifytos action this parameter should
contain value to be set in TOS field in the packet
in the range 0 to 255. Other values are invalid for
this action. The application of this value is
dependent on the mask parameter. For
setbaclevel action this parameter should contain
valid Buffer Admission Control level value of 0 or
1. For pktvlanid, retagvlanid, pktservicevlanid and
retagservicevlanid actions this parameter should
be filled with VLAN ID value in the range 1 to
4094. For mirror action this parameter should be
filled with valid mirror context id.
Type: Create - Optional
Modify - Optional
Valid values: 0 - 0xffffffff
Default value: 0
actionmask
<actionmask -val>
This field is valid for modifytos action only. Only
lower 8-bits are taken into consideration for
modifytos action and other bits are ignored. In the
mask if a bit location contains 1, then the
corresponding bit in the TOS field is overwritten
with the corresponding bit in action value. In the
mask if a bit location contains 0, then the
corresponding bit in the TOS field remains
unchanged.
Type: Create - Optional
Modify - Optional
Valid values: 0 - 0xffffffff
Default value: 0xffffffff
Example
$ create filter rule actionmap ruleid 1 orderindex 1 action SetPrio priority 3
actionval 0x00000000 actionmask 0xffffffff
Output
Verbose Mode On
Entry Created
Rule Id : 1 Order Index : 1
Action : SetPrio Priority : 3
ActionValue : 0x00000000
Action Mask : 0xffffffff
Verbose Mode Off:
Entry Created
Output field
Field Description
Rule Id
Unique identifier of a filter rule entry for which
this mapping is being created
Order Index
This is the order index to allow creation of
multiple entries in this table with a single rule
identified by 'ruleid'. Multiple actions of the rule
are applied in the increasing order of this field
Action
This field specifies the action of the rule
Priority
This field specifies the priority to be set for the
matching packets. It is valid only if 'action' is
either 'setprio' or 'retagprio'or 'retagserviceprio'.
ActionValue
The parameter should contain valid value for
some actions that require an additional input,
other than setprio, retagprio, and
retagserviceprio actions. For copytocontrol
Comentários a estes Manuais