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
Signature · 7 lines
Best regards, Waters mailto:[email protected] _______________________________________________ LARTC mailing list / [email protected] http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/lartc/
Quoted 11 lines · Waters
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.oll_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.olibnetlink.c
ar rcs libnetlink.a ll_map.o libnetlink.o
Quoted 5 lines
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.cll_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
Signature · 8 lines
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 _______________________________________________ LARTC mailing list / [email protected] http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/lartc/
Just look into ll_proto.c and delete the line 36 which contains ETH_P_ECHO.
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Waters
Sent: 2001?12?25? 7:41
To: [email protected]
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
Signature · 13 lines
Best regards, Waters mailto:[email protected] _______________________________________________ LARTC mailing list / [email protected] http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/lartc/ _______________________________________________ LARTC mailing list / [email protected] http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/lartc/
[LARTC] iproute2
In reply to WatersHello 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?
Signature · 7 lines
Best regards, Waters mailto:[email protected] _______________________________________________ LARTC mailing list / [email protected] http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/lartc/
Re: [LARTC] iproute2
In reply to WatersRecompile your kernel with netlink.
Quoted 18 lines · Waters
Hello lartc,
When I'm trying to put this command:
tc qdisc add dev eth0 root handle 10: cbq bandwidth 10Mbit avpkt 1000I get such message:
RTNETLINK answers: Invalid argumentWhat could be the reason for it? What have I done wrong?
Signature · 7 lines
Best regards, Waters mailto:[email protected] _______________________________________________ LARTC mailing list / [email protected] http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/lartc/
Signature · 11 lines
HoraPe --- Horacio J. Peña [email protected] [email protected] [email protected] [email protected] _______________________________________________ LARTC mailing list / [email protected] http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/lartc/
Re: [LARTC] iproute2
In reply to WatersQuoted 4 lines
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
Quoted 11 lines · Waters
Quoted 10 lines
Hello lartc,
When I'm trying to put this command:
tc qdisc add dev eth0 root handle 10: cbq bandwidth 10Mbit avpkt 1000I get such message:
RTNETLINK answers: Invalid argumentWhat could be the reason for it? What have I done wrong?
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/lartc/
Re: [LARTC] iproute2
In reply to WatersQuoted 7 lines · you
When I'm trying to put this command:
tc qdisc add dev eth0 root handle 10: cbq bandwidth 10Mbit avpkt 1000I get such message:
RTNETLINK answers: Invalid argumentWhat 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
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/lartc/