* [LARTC] Can't use fwmark filters
@ 2003-10-26 16:08 Alex
2003-10-31 20:16 ` sanyi
0 siblings, 1 reply; 2+ messages in thread
From: Alex @ 2003-10-26 16:08 UTC (permalink / raw)
To: lartc
Hello,
I'm facing an issue that i have reported on Debian's BTS as a bug against
iproute package. Prior to this i have been looking around trying to find
out what could be wrong but had no success to get it to work.
Below is a what i've reported on Debian's BTS as
http://bugs.debian.org/215629
Here goes the story, thanks for any tip on the subject.
Alex
----
I would like to add a fwmark filter to the original HTB based
LARTC "WonderShaper" script (http://lartc.org/wondershaper/).
I am using a self compiled kernel from latest sarge
kernel-source-2.4.22 and based on kernel-image-2.4.22-k7 provided config
file.
The idea is to add a single additionnal fwmark filter :
tc filter add dev ppp0 parent 1: protocol ip prio 10 \
handle 1 fw classid 1:30
When adding this line i get the following error message :
RTNETLINK answers: Invalid argument
If i modify the WonderShaper script, remove all "tc filter" lines but the
fwmark filter one i get no such error.
The filter seems to get declared just fine.
From here i can start uncommenting some of the "tc filter" lines
provided in WonderShaper without getting any error.
At some point when having enabled again 4 or 5 "tc filter" original
lines the reported error strikes again.
I have tried simplifying the script to something like this :
tc qdisc add dev ppp0 root handle 1: htb default 60
tc class add dev ppp0 parent 1: classid 1:1 htb rate 450kbit
tc class add dev ppp0 parent 1:1 classid 1:10 htb rate 450kbit
tc class add dev ppp0 parent 1:1 classid 1:60 htb rate 450kbit
tc qdisc add dev ppp0 parent 1:10 handle 10: sfq
tc qdisc add dev ppp0 parent 1:60 handle 60: sfq
tc filter add dev ppp0 parent 1: protocol ip prio 1 handle 1 fw classid 1:10
tc filter add dev ppp0 parent 1: protocol ip prio 1 handle 6 fw classid 1:60
Which works fine.
Adding this single line triggers the error again :
tc filter add dev ppp0 parent 1: protocol ip prio 1 u32 \
match ip tos 0x10 0xff flowid 1:10
---> RTNETLINK answers: Invalid argument
I am stucked here... i haven't been able to find anything related to
this on the net and i hope not to be misusing 'tc'.
Thank you.
-- System Information:
Debian Release: testing/unstable
Architecture: i386
Kernel: Linux routeur 2.4.22-routeur3 #1 Sat Oct 11 11:40:45 CEST 2003 i686
Locale: LANG=C, LC_CTYPE=C
Versions of packages iproute depends on:
ii libc6 2.3.2-7 GNU C Library: Shared
libraries an
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [LARTC] Can't use fwmark filters
2003-10-26 16:08 [LARTC] Can't use fwmark filters Alex
@ 2003-10-31 20:16 ` sanyi
0 siblings, 0 replies; 2+ messages in thread
From: sanyi @ 2003-10-31 20:16 UTC (permalink / raw)
To: lartc
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hello,
On Sun, 26 Oct 2003, Alex wrote:
> tc filter add dev ppp0 parent 1: protocol ip prio 1 handle 1 fw classid 1:10
> tc filter add dev ppp0 parent 1: protocol ip prio 1 handle 6 fw classid 1:60
>
> Which works fine.
>
> Adding this single line triggers the error again :
>
> tc filter add dev ppp0 parent 1: protocol ip prio 1 u32 \
> match ip tos 0x10 0xff flowid 1:10
>
> ---> RTNETLINK answers: Invalid argument
Looks like the same problem what i reported ~2 months ago. A quick
solution would be to use different prio's for fw filters and u32
filters.
- --
Marton Sandor - sanyi@sigmasoft.ro
GPG id: 0x32825B5A , www.keyserver.net
BOFH excuse #438:
sticky bit has come loose
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)
iD8DBQE/osMrKiUXNzKCW1oRAs/QAJ9CZzpifK6WEdBriFGsCUDN7gYHGACdGkdS
VYdgeBMVFlq1pCLYfsFQvzo=4lXy
-----END PGP SIGNATURE-----
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-10-31 20:16 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-10-26 16:08 [LARTC] Can't use fwmark filters Alex
2003-10-31 20:16 ` sanyi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox