tags 655088 +confirmed +forwarded thanks Hi Kirill,
On Sun, Jan 08, 2012 at 05:59:47PM +0400, Kirill Brilliantov wrote: > Exaple code in rtnetlink.3 isn't work. > If you set append NLM_F_ACK to nlmsg_flags and will read answer you get this > - error 22 (Numerical result out of range) > > This patch correct example code: > > --- rtnetlink.3.org 2012-01-08 17:19:05.000000000 +0400 > +++ rtnetlink.3 2012-01-08 17:22:49.000000000 +0400 > @@ -109,7 +109,7 @@ > rta = (struct rtattr *)(((char *) &req) + > NLMSG_ALIGN(req.nh.nlmsg_len)); > rta\->rta_type = IFLA_MTU; > - rta\->rta_len = sizeof(unsigned int); > + rta\->rta_len = RTA_LENGTH(sizeof(unsigned int)); > req.n.nlmsg_len = NLMSG_ALIGN(req.nh.nlmsg_len) + > RTA_LENGTH(sizeof(mtu)); Thanks, I've forwarded your patch upstream. PS: by the way, please do let all subscribed people to receive your bug reports, not "maintonly", this way, upstream maintainer would have receive your report directly (Mickael Kerrisk is following the BTS). -- Simon Paillard -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org