All of lore.kernel.org
 help / color / mirror / Atom feed
* [LARTC] I can not set up filters
@ 2002-07-03 14:35 Gabriel Paues
  2002-07-03 14:42 ` Martin Devera
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Gabriel Paues @ 2002-07-03 14:35 UTC (permalink / raw)
  To: lartc

Hello!

I have set up a htb qdisc:
# tc qdisc show dev eth1
qdisc htb 1: r2q 10 default 12 direct_packets_stat 0

with the following classes attached to it

#tc class show dev eth1     
class htb 1:11 parent 1:1 prio 0 rate 80Kbit ceil 800Kbit burst 1575b
cburst 1969b 
class htb 1:1 root rate 800Kbit ceil 800Kbit burst 1969b cburst 1969b 
class htb 1:10 parent 1:1 prio 0 rate 240Kbit ceil 800Kbit burst 1772b
cburst 1969b 
class htb 1:12 parent 1:1 prio 0 rate 480Kbit ceil 800Kbit burst 1181b
cburst 1969b 

When I try to attach filters to it i get the following answer:
# tc filter add dev eth1 protocol ip parent 1:0 prio 1 u32 match ip
dport 80 0xffff flowid 1:10
RTNETLINK answers: Invalid argument

What am I doing wrong?

I Would really appreciate your help.

Regards,

Gabriel Paues
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [LARTC] I can not set up filters
  2002-07-03 14:35 [LARTC] I can not set up filters Gabriel Paues
@ 2002-07-03 14:42 ` Martin Devera
  2002-07-03 14:44 ` Gabriel Paues
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: Martin Devera @ 2002-07-03 14:42 UTC (permalink / raw)
  To: lartc

> When I try to attach filters to it i get the following answer:
> # tc filter add dev eth1 protocol ip parent 1:0 prio 1 u32 match ip
> dport 80 0xffff flowid 1:10
> RTNETLINK answers: Invalid argument
>
> What am I doing wrong?

did you load/compile U32 classifier ?

_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [LARTC] I can not set up filters
  2002-07-03 14:35 [LARTC] I can not set up filters Gabriel Paues
  2002-07-03 14:42 ` Martin Devera
@ 2002-07-03 14:44 ` Gabriel Paues
  2002-07-03 14:46 ` Bjoern Metzdorf
  2002-07-03 14:54 ` Bjoern Metzdorf
  3 siblings, 0 replies; 5+ messages in thread
From: Gabriel Paues @ 2002-07-03 14:44 UTC (permalink / raw)
  To: lartc

Wohhaaa...

Thank you so much for pointing out the obvious...
Now it works.. 

Thanks!

Gabriel Paues

Martin Devera wrote:
> 
> > When I try to attach filters to it i get the following answer:
> > # tc filter add dev eth1 protocol ip parent 1:0 prio 1 u32 match ip
> > dport 80 0xffff flowid 1:10
> > RTNETLINK answers: Invalid argument
> >
> > What am I doing wrong?
> 
> did you load/compile U32 classifier ?
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [LARTC] I can not set up filters
  2002-07-03 14:35 [LARTC] I can not set up filters Gabriel Paues
  2002-07-03 14:42 ` Martin Devera
  2002-07-03 14:44 ` Gabriel Paues
@ 2002-07-03 14:46 ` Bjoern Metzdorf
  2002-07-03 14:54 ` Bjoern Metzdorf
  3 siblings, 0 replies; 5+ messages in thread
From: Bjoern Metzdorf @ 2002-07-03 14:46 UTC (permalink / raw)
  To: lartc

Hi,

> qdisc htb 1: r2q 10 default 12 direct_packets_stat 0
>
> with the following classes attached to it
>
> #tc class show dev eth1
> class htb 1:11 parent 1:1 prio 0 rate 80Kbit ceil 800Kbit burst 1575b
> cburst 1969b
> class htb 1:1 root rate 800Kbit ceil 800Kbit burst 1969b cburst 1969b
> class htb 1:10 parent 1:1 prio 0 rate 240Kbit ceil 800Kbit burst 1772b
> cburst 1969b
> class htb 1:12 parent 1:1 prio 0 rate 480Kbit ceil 800Kbit burst 1181b
> cburst 1969b
>
> When I try to attach filters to it i get the following answer:
> # tc filter add dev eth1 protocol ip parent 1:0 prio 1 u32 match ip
> dport 80 0xffff flowid 1:10
> RTNETLINK answers: Invalid argument
>
> What am I doing wrong?

My guess:

You try to attach the filter to the class 1:0. Try attaching it to the
defined root class 1:1, or even better to the subclasses 1:10, 1:11 or 1:12
(think this is what you want).

Greetings,
Bjoern


_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [LARTC] I can not set up filters
  2002-07-03 14:35 [LARTC] I can not set up filters Gabriel Paues
                   ` (2 preceding siblings ...)
  2002-07-03 14:46 ` Bjoern Metzdorf
@ 2002-07-03 14:54 ` Bjoern Metzdorf
  3 siblings, 0 replies; 5+ messages in thread
From: Bjoern Metzdorf @ 2002-07-03 14:54 UTC (permalink / raw)
  To: lartc

> > What am I doing wrong?
> 
> My guess:

(Foolish crap removed)

I mixed up flowid and parent, your syntax was correct, and I was wrong.

Greetings,
Bjoern


_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2002-07-03 14:54 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-07-03 14:35 [LARTC] I can not set up filters Gabriel Paues
2002-07-03 14:42 ` Martin Devera
2002-07-03 14:44 ` Gabriel Paues
2002-07-03 14:46 ` Bjoern Metzdorf
2002-07-03 14:54 ` Bjoern Metzdorf

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.