> Are you using a current version of the iproute2 utilities?
> One of the bugs I fixed about 6 months ago when I took over maintance
> was teaching tc about the builtin pfifo_fast qdisc.
>
Yes. I tested tc utility of iproute2 versions :
all 2.2.4 postfix''es, 2.4.7 postfix, 2.6.9 postfix and 2.6.10 ...
behavior of tc utility is always the same :( :
ATSLite ()# tc -Version
tc utility, iproute2-ss050112
ATSLite ()# tc class ls dev eth1
do_page_fault() #2: sending SIGSEGV to tc for illegal read access from
00000000 (epc == 00000000, ra == 00409b70)
Segmentation fault
and as I said in previous post other things related to tc (shaping,qos etc
etc) work well.
I have done a little research and examine a buggy place.
Problem is in q->print_copt(q,fp,tb[TCA_OPTIONS]) in print_class function
of tc_class.c file.
Unfortunatly i can''t use any debugger such as gdb coz i don''t
have enough
memory space.
It''s rtl8181 based Access Point (planet wap-1963a) with:
2 mb of flash memory
16mb of ram
MIPS architecture.
cat /proc/cpuinfo gives me:
system type : Philips Nino
processor : 0
cpu model : R3000 V0.0
...
iproute2 was cross compiled with nonmips (nonmips.sf.net) cross compiler
gcc 3.3.3.
The rules being tested are :
#CLASS: download
#!/bin/sh
DEV=eth1
TC=/sbin/tc
U32="filter add dev $DEV protocol ip parent 1:0 prio 1 u32"
echo Delete previous root qdisc
$TC qdisc del dev $DEV root >/dev/null 2>&1
echo Add root qdisc
$TC qdisc add dev $DEV root handle 1: htb default 10
echo Add root class
$TC class add dev $DEV parent 1: classid 1:1 htb rate 12500kbps ceil
12500kbps burst 2k
echo Add default class
$TC class add dev $DEV parent 1:1 classid 1:0x10 htb rate 12500kbps ceil
12500kbps burst 2k
$TC qdisc add dev $DEV parent 1:0x10 handle 0x10: pfifo limit 5
echo Add class download, que pfifo limit 5
$TC class add dev $DEV parent 1:1 classid 1:0x20 htb rate 8kbps ceil
8kbps burst 2k prio 1
echo Add client net
$TC class add dev $DEV parent 1:0x20 classid 1:0x21 htb rate 8kbps ceil
8kbps burst 2k prio 1 quantum 1500
$TC ${U32} match ip dst 192.168.200.2/32 flowid 1:0x21
$TC qdisc add dev $DEV parent 1:0x21 handle 0x21: pfifo limit 5
I hope there is a solution.
thx in advance.
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/