* [LARTC] Iproute2
@ 2001-12-24 23:41 Waters
2001-12-26 11:01 ` bert hubert
` (5 more replies)
0 siblings, 6 replies; 7+ messages in thread
From: Waters @ 2001-12-24 23:41 UTC (permalink / raw)
To: lartc
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/
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [LARTC] Iproute2
2001-12-24 23:41 [LARTC] Iproute2 Waters
@ 2001-12-26 11:01 ` bert hubert
2001-12-26 11:29 ` yangrunhua
` (4 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: bert hubert @ 2001-12-26 11:01 UTC (permalink / raw)
To: lartc
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
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/lartc/
^ permalink raw reply [flat|nested] 7+ messages in thread
* RE: [LARTC] Iproute2
2001-12-24 23:41 [LARTC] Iproute2 Waters
2001-12-26 11:01 ` bert hubert
@ 2001-12-26 11:29 ` yangrunhua
2001-12-30 1:03 ` [LARTC] iproute2 Waters
` (3 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: yangrunhua @ 2001-12-26 11:29 UTC (permalink / raw)
To: 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/
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/lartc/
^ permalink raw reply [flat|nested] 7+ messages in thread
* [LARTC] iproute2
2001-12-24 23:41 [LARTC] Iproute2 Waters
2001-12-26 11:01 ` bert hubert
2001-12-26 11:29 ` yangrunhua
@ 2001-12-30 1:03 ` Waters
2001-12-30 1:23 ` horape
` (2 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: Waters @ 2001-12-30 1:03 UTC (permalink / raw)
To: 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
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/lartc/
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [LARTC] iproute2
2001-12-24 23:41 [LARTC] Iproute2 Waters
` (2 preceding siblings ...)
2001-12-30 1:03 ` [LARTC] iproute2 Waters
@ 2001-12-30 1:23 ` horape
2001-12-30 20:51 ` John Huttley
2001-12-30 20:57 ` Martin Petersen
5 siblings, 0 replies; 7+ messages in thread
From: horape @ 2001-12-30 1:23 UTC (permalink / raw)
To: lartc
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
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/lartc/
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [LARTC] iproute2
2001-12-24 23:41 [LARTC] Iproute2 Waters
` (3 preceding siblings ...)
2001-12-30 1:23 ` horape
@ 2001-12-30 20:51 ` John Huttley
2001-12-30 20:57 ` Martin Petersen
5 siblings, 0 replies; 7+ messages in thread
From: John Huttley @ 2001-12-30 20:51 UTC (permalink / raw)
To: lartc
> 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?
> >
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/lartc/
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [LARTC] iproute2
2001-12-24 23:41 [LARTC] Iproute2 Waters
` (4 preceding siblings ...)
2001-12-30 20:51 ` John Huttley
@ 2001-12-30 20:57 ` Martin Petersen
5 siblings, 0 replies; 7+ messages in thread
From: Martin Petersen @ 2001-12-30 20:57 UTC (permalink / raw)
To: lartc
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
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/lartc/
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2001-12-30 20:57 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-12-24 23:41 [LARTC] Iproute2 Waters
2001-12-26 11:01 ` bert hubert
2001-12-26 11:29 ` yangrunhua
2001-12-30 1:03 ` [LARTC] iproute2 Waters
2001-12-30 1:23 ` horape
2001-12-30 20:51 ` John Huttley
2001-12-30 20:57 ` Martin Petersen
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.