Re: tc filter priority

Linux Advanced Routing and Traffic Control

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

 



On Thu, Jun 09, 2005 at 11:03:31AM -0300, Glaucius Djalma Pereira Junior wrote:
> see it :
> 
> one packet from 10.10.10.1:2421 going to 11.11.11.1:110  what rule
> above it will be shaped ??
> 
> 1 ) tc filter add dev eth0 protocol ip parent 1:0 prio 1 u32 match ip
> src 10.10.10.10 match ip dst 11.11.11.1 flowid 1:$RULE
> 
> 2 ) tc filter add dev eth0 protocol ip parent 1:0 prio 1 u32 match ip
> src 10.10.10.1 match ip dport 110 0xffff flowid 1:$RULE
> 
> the rules were created in this order : 1 and after 2
> 
> what rule the packet will be shaped ?
I do believe that if you add filter by filter with the same prio to the same
parent -- they'll have sequential IDs (their "fh" in "tc filter show ..").
And I believe they will be passed (checked) ID by ID sequentially.

So, in the example above, first filter will filter the packet to 1:$RULE.


At least I relied upon that often and haven't been ashamed :-)

> 
> best regards 
> 
> 
> -- 
> Glaucius Djalma Pereira Junior
> glaucius@xxxxxxxxx

-- 
  _,-=._              /|_/|
  `-.}   `=._,.-=-._.,  @ @._,
     `._ _,-.   )      _,.-'
        `    G.m-"^m`m'        Dmytro O. Redchuk

_______________________________________________
LARTC mailing list
LARTC@xxxxxxxxxxxxxxx
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

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