niXforums Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
·  nixdoc.net ·  man pages ·  Linux HOWTOs ·  FreeBSD Tips ·  Forums
navigation Forum index » *nix » Linux » networking
TC hashing tables using problem
Post new topic   Reply to topic Page 1 of 1 [1 Post] View previous topic :: View next topic
Author Message
Zbigniew Kempczyński
*nix forums beginner


Joined: 12 May 2006
Posts: 1

PostPosted: Fri May 12, 2006 10:25 am    Post subject: TC hashing tables using problem Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [1 Post] View previous topic :: View next topic
The time now is Wed Dec 03, 2008 1:22 am | All times are GMT
navigation Forum index » *nix » Linux » networking
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts Unknown in header problem -SOLVED- Light Speed Postfix 0 Thu Jul 03, 2008 10:40 am
No new posts problem with sending mail nuxia Postfix 0 Mon Apr 21, 2008 3:58 am
No new posts Postfix 2.3.8 Virtual problem Blotto Postfix 0 Fri Apr 04, 2008 6:11 am
No new posts Postfix sending problem for local domain remote email monkey_magix Postfix 0 Mon Sep 10, 2007 10:17 am
No new posts bounce problem murkis Postfix 0 Sun Oct 08, 2006 3:45 pm

Adverse Credit Remortgage | MPAA | Payday Loan | Cheap Loan | Loans
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
[ Time: 0.2437s ][ Queries: 16 (0.1791s) ][ GZIP on - Debug on ]