[LARTC] Filter/Classifier

Linux Advanced Routing and Traffic Control

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

 



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



[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux