Hello, There is a big need to shape traffic, and I heard that iproute2 could satisfy my needs, so I''ve downloaded lastest version, but seems there are problems, where is my mistake? /usr/local/src/iproute2# make make[1]: Entering directory `/usr/local/src/iproute2/lib'' gcc -D_GNU_SOURCE -O2 -Wstrict-prototypes -Wall -g -I../include-glibc -include ../include-glibc/glibc-bugs.h -I/usr/src/linux/include -I../include -DRESOLVE_HOSTNAMES -c -o ll_map.o ll_map.c gcc -D_GNU_SOURCE -O2 -Wstrict-prototypes -Wall -g -I../include-glibc -include ../include-glibc/glibc-bugs.h -I/usr/src/linux/include -I../include -DRESOLVE_HOSTNAMES -c -o libnetlink.o libnetlink.c ar rcs libnetlink.a ll_map.o libnetlink.o gcc -D_GNU_SOURCE -O2 -Wstrict-prototypes -Wall -g -I../include-glibc -include ../include-glibc/glibc-bugs.h -I/usr/src/linux/include -I../include -DRESOLVE_HOSTNAMES -c -o utils.o utils.c gcc -D_GNU_SOURCE -O2 -Wstrict-prototypes -Wall -g -I../include-glibc -include ../include-glibc/glibc-bugs.h -I/usr/src/linux/include -I../include -DRESOLVE_HOSTNAMES -c -o rt_names.o rt_names.c gcc -D_GNU_SOURCE -O2 -Wstrict-prototypes -Wall -g -I../include-glibc -include ../include-glibc/glibc-bugs.h -I/usr/src/linux/include -I../include -DRESOLVE_HOSTNAMES -c -o ll_types.o ll_types.c gcc -D_GNU_SOURCE -O2 -Wstrict-prototypes -Wall -g -I../include-glibc -include ../include-glibc/glibc-bugs.h -I/usr/src/linux/include -I../include -DRESOLVE_HOSTNAMES -c -o ll_proto.o ll_proto.c ll_proto.c:36: `ETH_P_ECHO'' undeclared here (not in a function) ll_proto.c:36: initializer element is not constant ll_proto.c:36: (near initialization for `llproto_names[1].id'') make[1]: *** [ll_proto.o] Error 1 make[1]: Leaving directory `/usr/local/src/iproute2/lib'' make: *** [all] Error 2 I''m using Slackware 8, kernel version 2.4.5 -- Best regards, Waters mailto:waters@inbox.lv
On Tue, Dec 25, 2001 at 01:41:05AM +0200, Waters wrote:> Hello, > > There is a big need to shape traffic, and I heard that iproute2 could > satisfy my needs, so I''ve downloaded lastest version, but seems there > are problems, where is my mistake? > > /usr/local/src/iproute2# make > make[1]: Entering directory `/usr/local/src/iproute2/lib'' > gcc -D_GNU_SOURCE -O2 -Wstrict-prototypes -Wall -g -I../include-glibc -include ../include-glibc/glibc-bugs.h -I/usr/src/linux/include -I../include -DRESOLVE_HOSTNAMES -c -o ll_map.o ll_map.c > gcc -D_GNU_SOURCE -O2 -Wstrict-prototypes -Wall -g -I../include-glibc -include ../include-glibc/glibc-bugs.h -I/usr/src/linux/include -I../include -DRESOLVE_HOSTNAMES -c -o libnetlink.o libnetlink.c > ar rcs libnetlink.a ll_map.o libnetlink.o > gcc -D_GNU_SOURCE -O2 -Wstrict-prototypes -Wall -g -I../include-glibc -include ../include-glibc/glibc-bugs.h -I/usr/src/linux/include -I../include -DRESOLVE_HOSTNAMES -c -o utils.o utils.c > gcc -D_GNU_SOURCE -O2 -Wstrict-prototypes -Wall -g -I../include-glibc -include ../include-glibc/glibc-bugs.h -I/usr/src/linux/include -I../include -DRESOLVE_HOSTNAMES -c -o rt_names.o rt_names.c > gcc -D_GNU_SOURCE -O2 -Wstrict-prototypes -Wall -g -I../include-glibc -include ../include-glibc/glibc-bugs.h -I/usr/src/linux/include -I../include -DRESOLVE_HOSTNAMES -c -o ll_types.o ll_types.c > gcc -D_GNU_SOURCE -O2 -Wstrict-prototypes -Wall -g -I../include-glibc -include ../include-glibc/glibc-bugs.h -I/usr/src/linux/include -I../include -DRESOLVE_HOSTNAMES -c -o ll_proto.o ll_proto.c > ll_proto.c:36: `ETH_P_ECHO'' undeclared here (not in a function)Slackware will have an iproute package. This error probably means that it can''t find the right kernel sources. Regards. bert -- http://www.PowerDNS.com Versatile DNS Software & Services http://www.tk the dot in .tk Netherlabs BV / Rent-a-Nerd.nl - Nerd Available - Linux Advanced Routing & Traffic Control: http://ds9a.nl/lartc
Just look into ll_proto.c and delete the line 36 which contains ETH_P_ECHO. -----Original Message----- From: lartc-admin@mailman.ds9a.nl [mailto:lartc-admin@mailman.ds9a.nl] On Behalf Of Waters Sent: 2001?12?25? 7:41 To: lartc@mailman.ds9a.nl Subject: [LARTC] Iproute2 Hello, There is a big need to shape traffic, and I heard that iproute2 could satisfy my needs, so I''ve downloaded lastest version, but seems there are problems, where is my mistake? /usr/local/src/iproute2# make make[1]: Entering directory `/usr/local/src/iproute2/lib'' gcc -D_GNU_SOURCE -O2 -Wstrict-prototypes -Wall -g -I../include-glibc -include ../include-glibc/glibc-bugs.h -I/usr/src/linux/include -I../include -DRESOLVE_HOSTNAMES -c -o ll_map.o ll_map.c gcc -D_GNU_SOURCE -O2 -Wstrict-prototypes -Wall -g -I../include-glibc -include ../include-glibc/glibc-bugs.h -I/usr/src/linux/include -I../include -DRESOLVE_HOSTNAMES -c -o libnetlink.o libnetlink.c ar rcs libnetlink.a ll_map.o libnetlink.o gcc -D_GNU_SOURCE -O2 -Wstrict-prototypes -Wall -g -I../include-glibc -include ../include-glibc/glibc-bugs.h -I/usr/src/linux/include -I../include -DRESOLVE_HOSTNAMES -c -o utils.o utils.c gcc -D_GNU_SOURCE -O2 -Wstrict-prototypes -Wall -g -I../include-glibc -include ../include-glibc/glibc-bugs.h -I/usr/src/linux/include -I../include -DRESOLVE_HOSTNAMES -c -o rt_names.o rt_names.c gcc -D_GNU_SOURCE -O2 -Wstrict-prototypes -Wall -g -I../include-glibc -include ../include-glibc/glibc-bugs.h -I/usr/src/linux/include -I../include -DRESOLVE_HOSTNAMES -c -o ll_types.o ll_types.c gcc -D_GNU_SOURCE -O2 -Wstrict-prototypes -Wall -g -I../include-glibc -include ../include-glibc/glibc-bugs.h -I/usr/src/linux/include -I../include -DRESOLVE_HOSTNAMES -c -o ll_proto.o ll_proto.c ll_proto.c:36: `ETH_P_ECHO'' undeclared here (not in a function) ll_proto.c:36: initializer element is not constant ll_proto.c:36: (near initialization for `llproto_names[1].id'') make[1]: *** [ll_proto.o] Error 1 make[1]: Leaving directory `/usr/local/src/iproute2/lib'' make: *** [all] Error 2 I''m using Slackware 8, kernel version 2.4.5 -- Best regards, Waters mailto:waters@inbox.lv _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/lartc/
Hello lartc, When I''m trying to put this command: tc qdisc add dev eth0 root handle 10: cbq bandwidth 10Mbit avpkt 1000 I get such message: RTNETLINK answers: Invalid argument What could be the reason for it? What have I done wrong? -- Best regards, Waters mailto:waters@inbox.lv
Recompile your kernel with netlink. On Sun, Dec 30, 2001 at 03:03:42AM +0200, Waters wrote:> Hello lartc, > > When I''m trying to put this command: > tc qdisc add dev eth0 root handle 10: cbq bandwidth 10Mbit avpkt 1000 > > I get such message: > RTNETLINK answers: Invalid argument > > What could be the reason for it? What have I done wrong? > > -- > Best regards, > Waters mailto:waters@inbox.lv > > > _______________________________________________ > LARTC mailing list / LARTC@mailman.ds9a.nl > http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/lartc/-- HoraPe --- Horacio J. Peña horape@compendium.com.ar horape@uninet.edu bofh@puntoar.net.ar horape@hcdn.gov.ar
> Recompile your kernel with netlink.This is not the problem. I ran 2.4.16 with devik''s htb software with no problem. When 2.4.17 came out, devik''s new beta was available so I recompiled. However I got the same error message as below, although I was setting up htb as the root, not cbq. I thought that it was just a problem with the new htb and devik would know about it and fix it is due course. By using the insmod -f option it is possible to force load modules. So I loaded the 2.4.16 (old) version of htb with the 2.4.17 kernel. The error disappeared and htb seems to work normally. If the problem was with netlink, the old module would not have worked either. Regards John> On Sun, Dec 30, 2001 at 03:03:42AM +0200, Waters wrote: > > Hello lartc, > > > > When I''m trying to put this command: > > tc qdisc add dev eth0 root handle 10: cbq bandwidth 10Mbit avpkt 1000 > > > > I get such message: > > RTNETLINK answers: Invalid argument > > > > What could be the reason for it? What have I done wrong? > >
On Sunday 30 December 2001 02:03, you wrote:> When I''m trying to put this command: > tc qdisc add dev eth0 root handle 10: cbq bandwidth 10Mbit avpkt 1000 > > I get such message: > RTNETLINK answers: Invalid argument > > What could be the reason for it? What have I done wrong?Have you compiled your kernel with support for CBQ? This error occurs when the qdisc is not available.. Regs Martin Petersen