All of lore.kernel.org
 help / color / mirror / Atom feed
* [LARTC] Hash tables
@ 2002-03-31 18:54 Charles Williams
  0 siblings, 0 replies; only message in thread
From: Charles Williams @ 2002-03-31 18:54 UTC (permalink / raw)
  To: lartc

hey all,

I was looking through the script and trying to work out more example entries
to jump start me for when I can test the script and noticed in the filters
the following after I had added the filters to check eth1 for dst address.

// for eth0 -> Internet filtering on source address
$TC filter add dev eth0 parent 1:0 prio 5 u32 \
  ht 1:6: match ip src $ALIAS2 flowid 1:2
$TC filter add dev eth0 parent 1:0 prio 5 handle\
  ::1 u32 ht 800:: match ip nofrag \
  offset mask 0x0F00 shift 6 \
  hashkey mask 0x00ff0000 at 8 link 1:

// for somewhere -> eth1 filtering on destination address
$TC filter add dev eth1 parent 2:0 prio 5 u32 \
  ht 1:6: match ip dst $ALIAS2 flowid 2:2
$TC filter add dev eth1 parent 2:0 prio 5 handle\
  ::1 u32 ht 800:: match ip nofrag \
  offset mask 0x0F00 shift 6 \
  hashkey mask 0x00ff0000 at 8 link 2:

The first block seems correct to me.  However the second doesn't.  Can
anyone verify this and explain why/how?

thanks,
chuck

_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-03-31 18:54 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-03-31 18:54 [LARTC] Hash tables Charles Williams

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.