Re: Divisor

Linux Advanced Routing and Traffic Control

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

 



Not sure about the divisor; but your number 800 can be any hexadecimal number (within reason). This value is the name of the hash table, so each hash table should have it's own name (i.e. 800::, 801::, etc.)

Someone can correct me if I am wrong, because I don't have a lot of experience with HTs.
Devanshu

Konrad wrote:
What is the difference between lines below?

$TC filter add dev imq0 parent 1:0 prio 5 handle 1: protocol ip u32 divisor 1 $TC filter add dev imq0 parent 1:0 prio 5 handle 2: protocol ip u32 divisor 256

What divisor is doing?

And the last problem...

$TC filter add dev imq0 protocol ip parent 1:0 prio 5 u32 ht 800:: match ip src 10.0.0.0/16 hashkey mask 0x000000ff at 12 link 2:

Why after ht should be 800?
When 801:: is correct value? When this value should be different.

Please help me understand this.

--
Konrad aka Lenthir
_______________________________________________
LARTC mailing list
LARTC@xxxxxxxxxxxxxxx
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc



--
Devanshu Mehta
Advanced Networks and Applications Group
MIT Lincoln Laboratory

_______________________________________________
LARTC mailing list
LARTC@xxxxxxxxxxxxxxx
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

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