I have a quesiton about hashtables I''m trying to understan how I can
use
this.
the default hash table would be 800::
tc filter add dev eth1 protocol ip parent 1:0 prio 5 u32 ht 800:: \
match ip src 1.2.0.0/16 \
hashkey mask 0x000000ff at 12 \
link 2:
tc filter add dev eth1 protocol ip parent 1:0 prio 5 u32 ht 2:7b: \
match ip src 1.2.4.123 flowid 1:2
so I would understand this to get the last octect of the IP address and
use it to choose the ht
I''m wondering if I could set the mask to something like 0x0000ff00 so
that
I could only get the 3rd octect? Or am I not understanding how the mask
works?
and also could I use it like a normail netowrk mask so that I could use
something like 0x00000080 or something?
-zoop
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
On Mon, Oct 21, 2002 at 06:08:39PM -0700, zoop@unix01.lendingfirst.com wrote:> I''m wondering if I could set the mask to something like 0x0000ff00 so that > I could only get the 3rd octect? Or am I not understanding how the mask > works?Would also work, yes.> and also could I use it like a normail netowrk mask so that I could use > something like 0x00000080 or something?Even that! Regards, bert -- http://www.PowerDNS.com Versatile DNS Software & Services http://lartc.org Linux Advanced Routing & Traffic Control HOWTO _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/