Re: Problem with tc filter (tc qdisc/class works ok)

Linux Advanced Routing and Traffic Control

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

 



--- Stef Coene <stef.coene@xxxxxxxxx> wrote:
> On Thursday 09 October 2003 23:58, Praveen Mehrotra
> wrote:
> > Hello,
> >
> > I'm having problem adding filters using tc. I get
> the
> > response back RTNETLINK answers-invalis argument.
> >
> > Though the tc qdisc and tc class commands work
> fine.
> > In my kernel config, QoS related parameters are
> > enabled (CONFIG_NET_SCHED, CONFIG_NET_QOS,
> > CONFIG_NET_CLS, CONFIG_NET_CLS_U32,
> > CONFIG_NET_SCH_HTB). Also CONFIG_NETLINK,
> > CONFIG_RTNETLINK and CONFIG_NETLINK_DEV are set to
> 'y'
> Can you post your tc commands?
> 
> Stef


Hi Stef,

I'm using following commands (i'm trying to use it
with IMQ). I'm trying the example given in IMQ section
of adv-routing-howto doc.

# tc qdisc add dev imq0 root handle 1: htb default 11

# tc class add dev imq0 parent 1: classid 1:1 htb \
rate 4mbit burst 10k 

# tc class add dev imq0 parent 1:1 classid 1:10 \
htb rate 2mbit

# tc class add dev imq0 parent 1:1 classid 1:11 \
htb rate 2mbit 

# tc qdisc add dev imq0 parent 1:10 handle 10 pfifo
#tc qdisc add dev imq0 parent 1:11 handle 11: pfifo

# tc filter add dev imq0 parent 10:0 protocol ip \
prio 1 u32 match u32 00100000 00ff0000 at 0 \
flowid 1:10

All commands except the last one work fine.

Thanks for your help,
Praveen

__________________________________
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com
_______________________________________________
LARTC mailing list / LARTC@xxxxxxxxxxxxxxx
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

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