# Creating hash tables for classification of the packets to testbed11
tc filter add dev eth0 parent 2:0 prio 3 handle 1: u32 divisor 256
tc filter add dev eth0 parent 2:0 prio 3 handle 2: u32 divisor 256
# Configuring the 6th slot of the hash table 1 to select packets with
# destination set to testbed11 and the port set to 6010 (0x177a) and direct
# these to class 2:2 (which was just set up).
tc filter add dev eth0 parent 2:0 prio 3 u32 ht 1:6: match ip dst
129.237.125.146 match tcp dst 0x177a 0xffff flowid 2:2
# Configuring the 6th slot of the hash table 2 to select packets with
# destination set to testbed11 and the port set to 6011 (0x177b) and direct
# these to class 2:3 (which was just set up).
tc filter add dev eth0 parent 2:0 prio 3 u32 ht 2:6: match ip dst
129.237.125.146 match tcp dst 0x177b 0xffff flowid 2:3
# Lookup hash table and it it is not fragmented, use the protocol as the hash
# key.
tc filter add dev eth0 parent 2:0 prio 3 handle ::1 u32 ht 800:: match ip
nofrag offset mask 0x0F00 shift 6 hashkey mask 0x00ff0000 at 8 link 1:
tc filter add dev eth0 parent 2:0 prio 3 handle ::1 u32 ht 800:: match ip
nofrag offset mask 0x0F00 shift 6 hashkey mask 0x00ff0000 at 8 link 2:
# Installing a u32 classfier for the traffic to testbed13
tc filter add dev eth0 parent 3:0 prio 7 protocol ip u32
# Creating hash tables for classification of the packets to testbed13
tc filter add dev eth0 parent 3:0 prio 7 handle 3: u32 divisor 256
tc filter add dev eth0 parent 3:0 prio 7 handle 4: u32 divisor 256
# Configuring the 6th slot of the hash table 3 to select packets with
# destination set to testbed13 and the port set to 6021 (0x1785) and direct
# these to class 3:2 (which was just set up).
tc filter add dev eth0 parent 3:0 prio 7 u32 ht 3:6: match ip dst
129.237.125.148 match tcp dst 0x1785 0xffff flowid 3:2
# Configuring the 6th slot of the hash table 4 to select packets with
# destination set to testbed13 and the port set to 6031 (0x178f) and direct
# these to class 3:3 (which was just set up).
tc filter add dev eth0 parent 3:0 prio 7 u32 ht 4:6: match ip dst
129.237.125.148 match tcp dst 0x178f 0xffff flowid 3:3
# Lookup hash table and it it is not fragmented, use the protocol as the hash
# key.
tc filter add dev eth0 parent 3:0 prio 7 handle ::1 u32 ht 800:: match ip
nofrag offset mask 0x0F00 shift 6 hashkey mask 0x00ff0000 at 8 link 3:
tc filter add dev eth0 parent 3:0 prio 7 handle ::1 u32 ht 800:: match ip
nofrag offset mask 0x0F00 shift 6 hashkey mask 0x00ff0000 at 8 link 4: