[LARTC] Mixing classifiers

Linux Advanced Routing and Traffic Control

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

 



On Wed, 13 Aug 2003, Steffen Moser wrote:

> > I tried using under a htb qdisc u32 filter for 1 class , and fw 
> > classifier for another but i get "RTNETLINK answers: Invalid argument" 
> > when i wanr ro insert the second type of classifier. 
> 
> I don't get any error messages when starting a script like this one:
> 
>   #!/bin/bash
> 
>   TC=./tc
>   DEV=eth0
>   LAN=192.168.1.0/24
> 
>   $TC qdisc del dev $DEV root
>   $TC qdisc add dev $DEV root handle 1:0 htb
> 
>   $TC class add dev $DEV parent 1:0 classid 1:1 htb rate 2048kbit
>   $TC class add dev $DEV parent 1:0 classid 1:2 htb rate 4096kbit
> 
>   $TC filter add dev $DEV parent 1:0 protocol ip prio 1 u32 match ip dst $LAN classid 1:1
>   $TC filter add dev $DEV parent 1:0 protocol ip prio 2 handle 5 fw classid 1:2

Yes, this script work. I compared with my script and i observed that i 
get the error message only when i have the same prio for the filters. 
Try the fw filter with "prio 1 handle 5 fw"

Different prio's will solve my problem but still i'm curious

-- 
 Marton Sandor  -  sanyi@xxxxxxxxxxxx



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