User`s guide

Chapter XIII. Bypass Driver
Chelsio T5/T4 Unified Wire For Linux Page 195
redirect ethX
delete
table
table id
Delete the table
index
rule index
Delete a rule from a table.
redirect ethX
purge
table
table id
Remove all rules from the specified
table
redirect ethX
move
table
table id
Check that the new rule id is valid and
move the source rule to new id if it
doesn’t contain any existing rule
old_id
Existing rule index.
new_id
New rule index.
redirect ethX
count
table
table id
Display a count of the number of
packets and bytes has matched a rule.
index
rule index
redirect ethX
create_table
table
table id
Create a new table that is used to hold
a set of rules.
redirect ethX
activate_table
table
table id
Activate a table so that all the rules in
it will be active.
redirect ethx
deactivate_table
table
table id
Deactivate a table and its associated
rules.
redirect ethX
delete_table
table
table id
Delete a table and the rules in it.
redirect ethX
dump
dump all tables and rules as
commands
* The matching algorithm for srcportmask and dstportmask is
(Ingress_Packet-Field & Filter-Mask) == (Filter-Value & Filter-Mask)
4.2.6. Managing persistent tables and rules
This example creates a new table with table id 1 and then adds a rule to drop all ICMP packets
for port 0. The rules in a table are not active until the table is activated.
Create a table:
[root@host]# redirect ethX create_table --table 1
Activate the table:
[root@host]# redirect ethX activate_table --table 1
Add a rule to the newly created table:
[root@host]# redirect ethX add --table 1 --proto icmp -action drop -port 0