Networking Forums

Networking Forums > Computer Networking > Linux Networking > TC hashing tables using problem

Reply
Thread Tools Display Modes

TC hashing tables using problem

 
 
=?ISO-8859-2?Q?Zbigniew_Kempczy=F1ski?=
Guest
Posts: n/a

 
      05-12-2006, 10:25 AM
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/
=============================
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
IP tables help CCW Linux Networking 0 05-17-2008 11:59 AM
Access to the NAT tables Alvaro Linux Networking 2 12-05-2005 04:10 PM
hashing filters and traffic management =?ISO-8859-2?Q?Pawe=B3?= Staszewski Linux Networking 1 03-05-2005 05:20 PM
IP Tables - PPTP/GRE + NAT Andrew Townsend Linux Networking 1 06-12-2004 09:23 AM
Route tables Scott Dortch Linux Networking 5 02-05-2004 12:28 AM



1 2 3 4 5 6 7 8 9 10 11