All of lore.kernel.org
 help / color / mirror / Atom feed
* [LARTC] Wondershaper Errors
@ 2006-09-16 20:57 Gianluca "acid_burn" D'Andrea
  2006-09-17  3:55 ` gypsy
  0 siblings, 1 reply; 2+ messages in thread
From: Gianluca "acid_burn" D'Andrea @ 2006-09-16 20:57 UTC (permalink / raw)
  To: lartc

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi all!

when I activate wondershaper on my dsl connection (pppoa vc mux), i get
three errors:

# sh -x  /usr/sbin/wshaper ppp0
+ /usr/sbin/xmlstarter setenv tc_downlink
+ DOWNLINK+ /usr/sbin/xmlstarter setenv tc_uplink
+ UPLINK+ [ -z  ]
+ cat /proc/avalanche/avsar_modem_stats
+ grep Connection Rate
+ awk {printf("%d", $8)}
+ DOWNLINK\x1504
+ [ -z  ]
+ cat /proc/avalanche/avsar_modem_stats
+ grep Connection Rate
+ awk {printf("%d", $4)}
+ UPLINK20
+ DEV=ppp0
+ /usr/sbin/xmlstarter setenv tc_hipriohostsrc
+ HIPRIOHOSTSRC+ /usr/sbin/xmlstarter setenv tc_hipriohostdst
+ HIPRIOHOSTDST+ /usr/sbin/xmlstarter setenv tc_hiprioportsrc
+ HIPRIOPORTSRC+ /usr/sbin/xmlstarter setenv tc_hiprioportdst
+ HIPRIOPORTDST+ /usr/sbin/xmlstarter setenv tc_nopriohostsrc
+ NOPRIOHOSTSRC+ /usr/sbin/xmlstarter setenv tc_nopriohostdst
+ NOPRIOHOSTDST+ /usr/sbin/xmlstarter setenv tc_noprioportsrc
+ NOPRIOPORTSRC+ /usr/sbin/xmlstarter setenv tc_noprioportdst
+ NOPRIOPORTDST+ [ ppp0 = status ]
+ [ ppp0 = stop ]
+ tc qdisc del dev ppp0 root
+ tc qdisc del dev ppp0 ingress
+ tc qdisc add dev ppp0 root handle 1: htb default 20
+ tc class add dev ppp0 parent 1: classid 1:1 htb rate 320kbit burst 6k
+ tc class add dev ppp0 parent 1:1 classid 1:10 htb rate 320kbit burst
6k prio 1+ tc class add dev ppp0 parent 1:1 classid 1:20 htb rate
288kbit burst 6k prio 2+ tc class add dev ppp0 parent 1:1 classid 1:30
htb rate 256kbit burst 6k prio 2+ tc qdisc add dev ppp0 parent 1:10
handle 10: sfq perturb 10
RTNETLINK answers: Invalid argument             <----- 1'st error ------
+ tc qdisc add dev ppp0 parent 1:20 handle 20: sfq perturb 10
RTNETLINK answers: Invalid argument             <----- 2'nd error ------
+ tc qdisc add dev ppp0 parent 1:30 handle 30: sfq perturb 10
RTNETLINK answers: Invalid argument             <----- 3'rd error ------
+ tc filter add dev ppp0 parent 1:0 protocol ip prio 10 u32 match ip tos
0x10 0xff flowid 1:10
+ tc filter add dev ppp0 parent 1:0 protocol ip prio 10 u32 match ip
protocol 1 0xff flowid 1:10
+ tc filter add dev ppp0 parent 1: protocol ip prio 10 u32 match ip
protocol 6 0xff match u8 0x05 0x0f at 0 match u16 0x0000 0xffc0 at 2
match u8 0x10 0xff at 33 flowid 1:10
+ tc filter add dev ppp0 parent 1: protocol ip prio 18 u32 match ip dst
0.0.0.0/0 flowid 1:20
+ tc qdisc add dev ppp0 handle ffff: ingress
+ tc filter add dev ppp0 parent ffff: protocol ip prio 50 u32 match ip
src 0.0.0.0/0 police rate 1504kbit burst 10k drop flowid :1

why?
thanks in advance
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)

iD8DBQFFDGVPGiBkJr7gM94RAhcMAJ91kpFDlj8vGYtIauglJSoNDSq7YACfUGJ5
A82gL7g8xWxroSI2ohne4+g=J9nc
-----END PGP SIGNATURE-----


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

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

* Re: [LARTC] Wondershaper Errors
  2006-09-16 20:57 [LARTC] Wondershaper Errors Gianluca "acid_burn" D'Andrea
@ 2006-09-17  3:55 ` gypsy
  0 siblings, 0 replies; 2+ messages in thread
From: gypsy @ 2006-09-17  3:55 UTC (permalink / raw)
  To: lartc

Gianluca \"acid_burn\" D'Andrea wrote:
> 
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Hi all!
> 
> when I activate wondershaper on my dsl connection (pppoa vc mux), i get
> three errors:
> 
> # sh -x  /usr/sbin/wshaper ppp0
> + /usr/sbin/xmlstarter setenv tc_downlink
> + DOWNLINK> + /usr/sbin/xmlstarter setenv tc_uplink
> + UPLINK> + [ -z  ]
> + cat /proc/avalanche/avsar_modem_stats
> + grep Connection Rate
> + awk {printf("%d", $8)}
> + DOWNLINK\x1504
> + [ -z  ]
> + cat /proc/avalanche/avsar_modem_stats
> + grep Connection Rate
> + awk {printf("%d", $4)}
> + UPLINK20
> + DEV=ppp0
> + /usr/sbin/xmlstarter setenv tc_hipriohostsrc
> + HIPRIOHOSTSRC> + /usr/sbin/xmlstarter setenv tc_hipriohostdst
> + HIPRIOHOSTDST> + /usr/sbin/xmlstarter setenv tc_hiprioportsrc
> + HIPRIOPORTSRC> + /usr/sbin/xmlstarter setenv tc_hiprioportdst
> + HIPRIOPORTDST> + /usr/sbin/xmlstarter setenv tc_nopriohostsrc
> + NOPRIOHOSTSRC> + /usr/sbin/xmlstarter setenv tc_nopriohostdst
> + NOPRIOHOSTDST> + /usr/sbin/xmlstarter setenv tc_noprioportsrc
> + NOPRIOPORTSRC> + /usr/sbin/xmlstarter setenv tc_noprioportdst
> + NOPRIOPORTDST> + [ ppp0 = status ]
> + [ ppp0 = stop ]
> + tc qdisc del dev ppp0 root
> + tc qdisc del dev ppp0 ingress
> + tc qdisc add dev ppp0 root handle 1: htb default 20
> + tc class add dev ppp0 parent 1: classid 1:1 htb rate 320kbit burst 6k
> + tc class add dev ppp0 parent 1:1 classid 1:10 htb rate 320kbit burst
> 6k prio 1+ tc class add dev ppp0 parent 1:1 classid 1:20 htb rate
> 288kbit burst 6k prio 2+ tc class add dev ppp0 parent 1:1 classid 1:30
> htb rate 256kbit burst 6k prio 2+ tc qdisc add dev ppp0 parent 1:10
> handle 10: sfq perturb 10
> RTNETLINK answers: Invalid argument             <----- 1'st error ------
> + tc qdisc add dev ppp0 parent 1:20 handle 20: sfq perturb 10
> RTNETLINK answers: Invalid argument             <----- 2'nd error ------
> + tc qdisc add dev ppp0 parent 1:30 handle 30: sfq perturb 10
> RTNETLINK answers: Invalid argument             <----- 3'rd error ------

It looks like you don't have sfq.  Check your kernel config and
/lib/modules/$VERSION/net/sched/sch_sfq.o since sfq is normally built as
a module.

tc needs sfq too.
--
gypsy
_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

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

end of thread, other threads:[~2006-09-17  3:55 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-09-16 20:57 [LARTC] Wondershaper Errors Gianluca "acid_burn" D'Andrea
2006-09-17  3:55 ` gypsy

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.