|
|
|
|
|
|
| Author |
Message |
Zbigniew Kempczyński *nix forums beginner
Joined: 12 May 2006
Posts: 1
|
Posted: Fri May 12, 2006 10:25 am Post subject:
TC hashing tables using problem
|
|
|
Hi.
I've tried to configure /29 class as a index to a tc hashing table.
For example I wanted to get an index from IP 192.168.168.52/29,
so for the last octet it is 48 (0x30). I tried to configure traffic:
1 tc filter add dev imq0 protocol ip prio 1 parent 1: handle 3: u32 divisor 32
2 tc filter add dev imq0 protocol ip prio 1 parent 1: \
u32 ht 800: match ip dst 192.168.168.0/16 hashkey mask 0x000000f8 at 16 link 3:
3 tc filter add dev imq0 protocol ip prio 1 parent 1: u32 ht 3:30 \
match ip dst 192.168.168.48/29 flowid 1:2
As you can see in line 2 hashkey mask 0x000000f8 should get me last octet value:
52 & 0xf8 = 48 (0x30). But that filter failed I don't know the reason why.
Could someone suggest me what is wrong in the example above?
Is that possible to use 16-bits as a hashkey mask? How is hash table index looks like?
Stronly confused Zbigniew
--
=============================
Zbigniew Kempczyński
http://it.marton.pl/wegorz/
============================= |
|
| Back to top |
|
 |
Google
|
|
| Back to top |
|
 |
|
|
The time now is Thu Dec 04, 2008 1:12 am | All times are GMT
|
|
Online Advertising | Remortgages | Advertising | Loans | Teen Chat
|
|
Copyright © 2004-2005 DeniX Solutions SRL
|
|
|
|
Other DeniX Solutions sites:
Unix/Linux blog |
electronics forum |
medicine forum |
science forum |
|
|
Privacy Policy
|
Powered by phpBB © 2001, 2005 phpBB Group
|
|