Re: use 3rd octet as hashkey

Linux Advanced Routing and Traffic Control

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

 



----- Original Message ----- 
From: "Martin Volf" <mv@xxxxxx>
To: <lartc@xxxxxxxxxxxxxxx>
Sent: Monday, November 24, 2003 11:37 PM
Subject: Re:  use 3rd octet as hashkey


> On Mon, 24 Nov 2003 09:52:30 +0530
> "Venkatesh. K" <venkatesh@xxxxxxxxxxxxxx> wrote:
>
> > Hi,
> >
> > I want to use 3rd octet in the ip address for creating hashng filters?
> >
> > How do I do it?
>
> Hi,
>
> what about this (two level hashing with the 3rd and the 4th octet):
>
>
> FILTER_ADD="/sbin/tc filter add dev imq0 parent 1:0 protocol ip"
>
> # 1st level - 3rd octet (mask 0x0000ff00)
> $FILTER_ADD handle 2: u32 divisor 256
> $FILTER_ADD u32 ht 800:: match ip dst 0/0 \
> hashkey mask 0x0000ff00 at 16 link 2:

I had thought about the above line. I have not been able understand
hashkey/mask of u32 filter fully as very little documentation is available.

I will try this out.

Thanks for the tip.

Venkatesh K

_______________________________________________
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