tags 655088 fixed-upstream thanks Hello Kirill, and Simon,
On Fri, Mar 23, 2012 at 1:34 PM, Simon Paillard <spaill...@debian.org> wrote: > 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. Long ago, Sergei reported the same issue, and no-one confirmed the issue, and I did not have time to investigate, so it sat in my inbox. Thanks for this patch. > 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). And that's good advice. Thanks, Michael -- Michael Kerrisk Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/ Author of "The Linux Programming Interface"; http://man7.org/tlpi/ -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org