All of lore.kernel.org
 help / color / mirror / Atom feed
* [LARTC] Filter/Classifier
@ 2003-01-29 20:24 David DeLauro
  0 siblings, 0 replies; only message in thread
From: David DeLauro @ 2003-01-29 20:24 UTC (permalink / raw)
  To: lartc



How are filters parsed?  Say I have a filter for a specific IP address:

tc filter add dev eth1 protocol ip parent 1:0 prio 0 u32 match ip dst 10.0.0.2 flowid 1:40

but then I have a filter for a port

tc filter add dev eth1 protocol ip parent 1:0 prio 1 u32 match ip sport 80 0xffff flowid 1:10

Now, let's say information is sent out of the interface with dst host
10.0.0.2 and source port 80....  Where would the packet get classified to?

Right now, no matter what, all port 80 traffic goes to the 1:10 class even
if I have a filter for a particular IP.

-- 
David DeLauro

Do not handicap your children by making their lives easy. - Robert Heinlein

The surest way to corrupt a youth is to instruct him to hold in higher regard those who think alike than those who think differently. - Nietzsche

People demand freedom of speech to make up for the freedom of thought which they avoid. - Soren Kierkegaard

_______________________________________________
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:[~2003-01-29 20:24 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-01-29 20:24 [LARTC] Filter/Classifier David DeLauro

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.