Skip to contentSkip to conversation

Classid limit at 10000

LARTC Martin Schiøtz 2 participants 3 messages Jul 6, 2005

lore
Share & tools
lore
#0 lore raw

Hi

I'm setting up shaping using HTB and hashkey. It seems like there is a limit on the number of classid's at 10000?
How can I go higher than 10000?

This is what my output say when I reach classid number 10000:
...
...

/sbin/tc class add dev eth0 parent 2:6 classid 2:9998 htb prio 5 rate 768kbit ceil 768kbit burst 0 cburst 0

/sbin/tc qdisc add dev eth0 parent 2:9998 handle 9998: sfq perturb 4

/sbin/tc filter add dev eth0 protocol ip prio 5 parent 2:6 u32 ht 12:93: match ip dst 10.50.157.147 flowid 2:9998

/sbin/tc class add dev eth0 parent 2:6 classid 2:10000 htb prio 5 rate 768kbit ceil 768kbit burst 0 cburst 0
Error: argument "invalid class ID" is wrong: 2:10000

/sbin/tc qdisc add dev eth0 parent 2:10000 handle 10000: sfq perturb 4
Error: argument "invalid parent ID" is wrong: 2:10000

/sbin/tc filter add dev eth0 protocol ip prio 5 parent 2:6 u32 ht 12:94: match ip dst 10.50.157.148 flowid 2:10000 Illegal "classid"

Best regards,
Martin
_______________________________________________
LARTC mailing list
[email protected]
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

#1 lore raw
Quoted 6 lines · Martin Schiøtz

Hi

I'm setting up shaping using HTB and hashkey. It seems like there is a limit on the number of classid's at 10000?
How can I go higher than 10000?

Class ID is hex, and can go up to FFFF, which is 65535. I think it is quite enough for everyone :-). It won't accept 10000 because it is not legal 4 byte word written in hex.

Signature · 6 lines
Michał Margula, [email protected], http://alchemyx.uznam.net.pl/
"W życiu piękne są tylko chwile" [Ryszard Riedel]
_______________________________________________
LARTC mailing list
[email protected]
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
#2 lore raw
In reply to Martin Schiøtz
Quoted 6 lines · Michał Margula

Class ID is hex, and can go up to FFFF, which is 65535. I think it is quite enough for everyone :-). It won't accept 10000 because it is not legal 4 byte word written in hex.

2 byte word of course, sorry.

Signature · 6 lines
Michał Margula, [email protected], http://alchemyx.uznam.net.pl/
"W życiu piękne są tylko chwile" [Ryszard Riedel]
_______________________________________________
LARTC mailing list
[email protected]
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc