<html>
<head>
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hi all,<br>
<br>
I'm using the libnl 3.2.3 for rtnl_htb functions, here is my
problem:<br>
<br>
When I set the rate (and ceil) of a branch of the htb
(rtnl_htb_set_rate(...) and rtnl_htb_set_ceil), the real observed
rate is 16 times bigger whereas the get functions
(rtnl_htb_get_rate(...) and rtnl_htb_get_ceil(...)) and the
nl_object_dump function (result at the end of the mail) return the
right set rate and ceil.<br>
<br>
For example when I set rate and ceil to 15kbits/sec, the observed
rate is 240kbits/sec (the parent has the same settings).<br>
<br>
When I tried to debug with NLCB=debug, the request message for the
setting of the htb is well acknowledged (error message with code 0)
but seems to have a wrong total length (see below). The second
attribute [ATTR 02] of the request is not readable without a
documentation, so I can not continue debugging without help.<br>
<br>
For information I've used a tc script (on the same system), and
everything has worked normally.<br>
<br>
Could someone gives me any idea on that ? Thanks in advance.<br>
<br>
Best Regards,<br>
Fabrice.<br>
<br>
-- Debug: Sent Message:<br>
-------------------------- BEGIN NETLINK MESSAGE
---------------------------<br>
[HEADER] 16 octets<br>
.nlmsg_len = 2152 (<b><big>instead of 16+20+4+2104 = 2144 ???</big></b>)<br>
.nlmsg_type = 40 <route/class::new><br>
.nlmsg_flags = 1029 <REQUEST,ACK,ATOMIC><br>
.nlmsg_seq = 1329809071<br>
.nlmsg_pid = 5947<br>
[PAYLOAD] 20 octets<br>
00 00 00 00 09 00 00 00 01 00 01 00 00 00 01 00 00 00
..................<br>
00 00 ..<br>
[ATTR 01] 4 octets<br>
68 74 62 00 htb.<br>
[ATTR 02] 2104 octets<br>
30 00 01 [...]<br>
--------------------------- END NETLINK MESSAGE
---------------------------<br>
-- Debug: Received Message:<br>
-------------------------- BEGIN NETLINK MESSAGE
---------------------------<br>
[HEADER] 16 octets<br>
.nlmsg_len = 36<br>
.nlmsg_type = 2 <ERROR><br>
.nlmsg_flags = 0 <><br>
.nlmsg_seq = 1329809071<br>
.nlmsg_pid = 5947<br>
[ERRORMSG] 20 octets<br>
.error = 0 "Success"<br>
[ORIGINAL MESSAGE] 16 octets<br>
.nlmsg_len = 16<br>
.nlmsg_type = 40 <0x28><br>
.nlmsg_flags = 1029 <REQUEST,ACK,ATOMIC><br>
.nlmsg_seq = 1329809071<br>
.nlmsg_pid = 5947<br>
--------------------------- END NETLINK MESSAGE
---------------------------<br>
<b><big><br>
nl_dump_object(...) =></big></b> class htb dev (null) id 1:2
parent 1:1 rate 1.83KiB/s (15Kbit) log 2147483648 ceil 1.83KiB/s
(15Kbit) log 2147483648 prio 0 <br>
<pre class="moz-signature" cols="72">--
Fabrice HOBAYA
PhD - Ingénieur d'études Viveris Technologies
1 Avenue de l'Europe - Parc technologique du Canal -
Bat C - 1er étage - 31400 Toulouse - France
<a class="moz-txt-link-abbreviated" href="mailto:fabrice.hobaya@toulouse.viveris.com">fabrice.hobaya@toulouse.viveris.com</a> </pre>
</body>
</html>