All of lore.kernel.org
 help / color / mirror / Atom feed
* [LARTC] Problem with flowid filter example from howto
@ 2002-11-21 20:02 Andrew D
  2002-11-21 20:38 ` Stef Coene
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Andrew D @ 2002-11-21 20:02 UTC (permalink / raw)
  To: lartc

For simplicity, I tried this:

tc qdisc add dev eth0 root handle 1: prio
tc qdisc add dev eth0 parent 1:1 handle 10: sfq perturb 10
tc qdisc add dev eth0 parent 1:2 handle 20: sfq perturb 10
tc qdisc add dev eth0 parent 1:3 handle 30: sfq perturb 10

tc filter add dev eth0 protocol ip parent 1: prio 2 flowid 1:1

The last line prints:
Unknown filter "flowid", hence option "1:1" is unparsable

I'm pretty sure that last line is almost exactly what is printed
in the howto, translated for what I want.  Did I need to add
something else first?  If this is not the right syntax, how do I
make all traffic (for now) go to a specific flow?

-Andrew


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

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

* Re: [LARTC] Problem with flowid filter example from howto
  2002-11-21 20:02 [LARTC] Problem with flowid filter example from howto Andrew D
@ 2002-11-21 20:38 ` Stef Coene
  2002-11-21 21:10 ` Andrew D
  2002-11-22 15:47 ` Stef Coene
  2 siblings, 0 replies; 4+ messages in thread
From: Stef Coene @ 2002-11-21 20:38 UTC (permalink / raw)
  To: lartc

On Thursday 21 November 2002 21:02, Andrew D wrote:
> For simplicity, I tried this:
>
> tc qdisc add dev eth0 root handle 1: prio
> tc qdisc add dev eth0 parent 1:1 handle 10: sfq perturb 10
> tc qdisc add dev eth0 parent 1:2 handle 20: sfq perturb 10
> tc qdisc add dev eth0 parent 1:3 handle 30: sfq perturb 10
>
> tc filter add dev eth0 protocol ip parent 1: prio 2 flowid 1:1
>
> The last line prints:
> Unknown filter "flowid", hence option "1:1" is unparsable
>
> I'm pretty sure that last line is almost exactly what is printed
> in the howto, translated for what I want.  Did I need to add
> something else first?  If this is not the right syntax, how do I
> make all traffic (for now) go to a specific flow?
Try 
tc filter add dev eth0 protocol ip parent 1: src 0/0 prio 2 flowid 1:1

Stef

-- 

stef.coene@docum.org
 "Using Linux as bandwidth manager"
     http://www.docum.org/
     #lartc @ irc.oftc.net

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

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

* Re: [LARTC] Problem with flowid filter example from howto
  2002-11-21 20:02 [LARTC] Problem with flowid filter example from howto Andrew D
  2002-11-21 20:38 ` Stef Coene
@ 2002-11-21 21:10 ` Andrew D
  2002-11-22 15:47 ` Stef Coene
  2 siblings, 0 replies; 4+ messages in thread
From: Andrew D @ 2002-11-21 21:10 UTC (permalink / raw)
  To: lartc

Thanks.  Though it doesn't quite work, I messed around with it till I
got this which does:

tc filter add dev eth0 protocol ip parent 1: prio 2 u32 match \
  ip src 0/0 flowid 1:1

Seems like an extra "if" statement, but it does the job.  Now I am
wondering, is this wrong in the howto (section 9.6.1) or is my system
just broken?

-Andrew

On Thu, 2002-11-21 at 15:38, Stef Coene wrote:
> Try 
> tc filter add dev eth0 protocol ip parent 1: src 0/0 prio 2 flowid 1:1
> 
> Stef
> 
> -- 
> 
> stef.coene@docum.org
>  "Using Linux as bandwidth manager"
>      http://www.docum.org/
>      #lartc @ irc.oftc.net
> 
> 


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

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

* Re: [LARTC] Problem with flowid filter example from howto
  2002-11-21 20:02 [LARTC] Problem with flowid filter example from howto Andrew D
  2002-11-21 20:38 ` Stef Coene
  2002-11-21 21:10 ` Andrew D
@ 2002-11-22 15:47 ` Stef Coene
  2 siblings, 0 replies; 4+ messages in thread
From: Stef Coene @ 2002-11-22 15:47 UTC (permalink / raw)
  To: lartc

On Thursday 21 November 2002 22:10, Andrew D wrote:
> Thanks.  Though it doesn't quite work, I messed around with it till I
> got this which does:
>
> tc filter add dev eth0 protocol ip parent 1: prio 2 u32 match \
>   ip src 0/0 flowid 1:1
>
> Seems like an extra "if" statement, but it does the job.  Now I am
> wondering, is this wrong in the howto (section 9.6.1) or is my system
> just broken?
I think you can say it's a features that's missing in tc :)
You have to match something, if if you match everything.

Stef

-- 

stef.coene@docum.org
 "Using Linux as bandwidth manager"
     http://www.docum.org/
     #lartc @ irc.oftc.net

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

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

end of thread, other threads:[~2002-11-22 15:47 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-11-21 20:02 [LARTC] Problem with flowid filter example from howto Andrew D
2002-11-21 20:38 ` Stef Coene
2002-11-21 21:10 ` Andrew D
2002-11-22 15:47 ` Stef Coene

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.