Skip to contentSkip to conversation

Filter/Classifier

LARTC David DeLauro 1 participant 1 message Jan 29, 2003

lore
Share & tools
lore
#0 lore raw

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.

Signature · 11 lines
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 / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/