[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
No Subject
In the folwings lines they use an hashtable. Why are used ???
I see another example and donīt use this notion.
Please replay me a small explanation. Explane too the lines 5, 6 and 7.
# Installing a route classifier on device eth0.
1. tc filter add dev eth0 parent 1:0 protocol ip prio 100 route
# Setting up the routes to testbed11 and testbed13 and the rules for this
# traffic.
2. ip route add 129.237.125.146 via 129.237.125.149 flow 1:2
3. ip route add 129.237.125.148 via 129.237.125.149 flow 1:3
# Installing a u32 classifier for the traffic to testbed11
4. tc filter add dev eth0 parent 2:0 prio 3 protocol ip u32
# Creating hash tables for classification of the packets to testbed11
5. tc filter add dev eth0 parent 2:0 prio 3 handle 1: u32 divisor 256
6. 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).
7. 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
Thanks
Carlos Parada