hi all, i'm having problems building a module from my tcng configuration file. could someone verify the syntax for building a kernel module? i did it as shown below ... module gets built but i cannot load it. thanks charles ps -- sorry, don't know c++ :-) [root]# cat /etc/tcng.test #define LAN "eth0" #define LAN_INGRESS 750000 #define LAN_EGRESS 750000 dev LAN { egress { class ( <$adsl_high> ) if 1; htb ( ) { class ( rate LAN_EGRESS kbps, ceil LAN_EGRESS kbps ) { $adsl_high = class ( prio 1, rate LAN_EGRESS kbps, burst 6kB, ceil LAN_EGRESS kbps ) { sfq ( perturb 10 sec ); }; } } } } [root]# tcc -t c < /etc/tcng.test # ================================ Device eth0 ================================ tc qdisc add dev eth0 handle 1:0 root dsmark indices 2 default_index 0 tc qdisc add dev eth0 handle 2:0 parent 1:0 htb tc class add dev eth0 parent 2:0 classid 2:1 htb rate 93750000bps ceil 93750000bps tc class add dev eth0 parent 2:1 classid 2:2 htb rate 93750000bps ceil 93750000bps burst 6144 prio 1 tc qdisc add dev eth0 handle 3:0 parent 2:2 sfq perturb 10 tc filter add dev eth0 parent 2:0 protocol all prio 1 tcindex mask 0x1 shift 0 tc filter add dev eth0 parent 2:0 protocol all prio 1 handle 1 tcindex classid 2:2 insmod cls__c010151.o tc filter add dev eth0 parent 1:0 protocol all prio 1 _c010151 [root]# tc qdisc add dev eth0 handle 1:0 root dsmark indices 2 default_index 0 [root]# tc qdisc add dev eth0 handle 2:0 parent 1:0 htb [root]# tc class add dev eth0 parent 2:0 classid 2:1 htb rate 93750000bps ceil 93750000bps [root]# tc class add dev eth0 parent 2:1 classid 2:2 htb rate 93750000bps ceil 93750000bps burst 6144 prio 1 [root]# tc qdisc add dev eth0 handle 3:0 parent 2:2 sfq perturb 10 [root]# tc filter add dev eth0 parent 2:0 protocol all prio 1 tcindex mask 0x1 shift 0 [root]# tc filter add dev eth0 parent 2:0 protocol all prio 1 handle 1 tcindex classid 2:2 [root]# insmod cls__c010151.o cls__c010151.o: ELF file cls__c010151.o not a relocatable object [root]# tc filter add dev eth0 parent 1:0 protocol all prio 1 _c01015 RTNETLINK answers: Invalid argument _______________________________________________ LARTC mailing list / LARTC@xxxxxxxxxxxxxxx http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/