Skip to contentSkip to conversation

Wondershaper Errors

LARTC Gianluca "acid_burn" D'Andrea 2 participants 2 messages Sep 16, 2006 – Sep 17, 2006

lore
Share & tools
lore
#0 lore raw

-----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)}
+ DOWNLINK04
+ [ -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
[email protected]
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

#1 lore raw
Quoted 39 lines · Gianluca \"acid_burn\" D'Andrea

-----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)}
+ DOWNLINK04
+ [ -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
Quoted 8 lines
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
[email protected]
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc