User guide
L2Filter Command Reference L2Filter
7-63
iMG/RG Software Reference Manual (Quality of Service)
7.2.2.1.1 L2FILTER ADD FIELDTYPE
Syntax L2FILTER ADD FIELDTYPE <name> BASE <base_value> OFFSET
<offset_value> MASK <mask_value>
Description This command allows the user to create their own filter field types.
Options The following table gives the range of values for each option that can be specified with
this command and a default value (if applicable).
Example --> l2filter add fieldType test_field base ethernet_header offset 10 mask 0xf
See also L2FILTER SHOW FIELDTYPE
7.2.2.1.2 L2FILTER ADD PROFILE
Syntax L2FILTER ADD PROFILE <name>
Description This command adds a profile to the L2 filter module.
Options The following table gives the range of values for each option that can be specified with
this command and a default value (if applicable).
Example --> l2filter add profile InboundTraffic
See also L2FILTER SHOW PROFILE
7.2.2.1.3 L2FILTER ADD RULE
Syntax L2FILTER ADD RULE <name> STAGE <stage> ORDER <order>
Description This command adds a rule to the module that can be attached to a profile.
Option Description Default Value
name The name of the new field type n/a
base_value The location in the packet to offset from n/a
offset_value The offset distance from the base to compare n/a
mask_value The mask to apply at the offset n/a
Option Description Default Value
name The name of the rule n/a