Hash table

Linux Advanced Routing and Traffic Control

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Sorry for all the questions I'm just trying to understand how it all works.  Thank
you for your time.

Is the following configuration possible? where ht 800 links to 3: for the 3rd Octet
in the IP and then 3: links to 4: for the fourth Octet?

tc filter add dev eth0 parent 1:0 prio 10 handle 3: protocol ip u32 divisor 256

tc filter add dev eth0 protocol ip parent 1:0 prio 10 u32 ht 800:: match ip dst
10.1.0.0/16 hashkey mask 0x0000ff00 at 16 link 3:

tc filter add dev eth0 parent 1:0 prio 10 handle 4: protocol ip u32 divisor 256

tc filter add dev eth0 protocol ip parent 1:0 prio 10 u32 ht 3:01: match ip dst
10.1.1.0/24 hashkey mask 0x000000ff at 16 link 4:

I'm not sure how the Hashtable works I looked at the code that you had pointed out
to me and I think my thinking is wrong on this.

[root@RL1 root]# tc -s filter ls dev eth0
filter parent 1: protocol ip pref 10 u32
filter parent 1: protocol ip pref 10 u32 fh 4: ht divisor 256
filter parent 1: protocol ip pref 10 u32 fh 4:ba:800 order 2048 key ht 4 bkt ba
flowid 1:65
  match 0a0101ba/ffffffff at 16

I would guess that my problem start here where it is not linking back to 3? maybe?

filter parent 1: protocol ip pref 10 u32 fh 4:fc:800 order 2048 key ht 4 bkt fc
flowid 1:65
  match 0a0101fc/ffffffff at 16
filter parent 1: protocol ip pref 10 u32 fh 3: ht divisor 256
filter parent 1: protocol ip pref 10 u32 fh 3:1:800 order 2048 key ht 3 bkt 1 link 4:
  match 0a010100/ffffff00 at 16
    hash mask 000000ff at 16
filter parent 1: protocol ip pref 10 u32 fh 800: ht divisor 1
filter parent 1: protocol ip pref 10 u32 fh 800::800 order 2048 key ht 800 bkt 0
link 3:
  match 0a010000/ffff0000 at 16
    hash mask 0000ff00 at 16

--
When dealing with a slow pipe, never underestimate the throughput of the postal system.


_______________________________________________
LARTC mailing list / LARTC@xxxxxxxxxxxxxxx
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux