On Fri, Oct 23, 2009 at 12:06 AM, Sergei Zhirikov <sfzhi@xxxxxxxxx> wrote:
> Hi all,
>
> I believe there is a bug in rtnetlink(3) man page (http://www.kernel.org/doc/man-pages/online/pages/man3/rtnetlink.3.html). There seem to be an error in the example code (the EXAMPLE section). The line:
>
> rta->rta_len = sizeof(unsigned int);
>
> should be:
>
> rta->rta_len = RTA_LENGTH(sizeof(unsigned int));
>
> Can anyone please confirm if I'm right?
Someone just did.
See my next mail.
Cheers,
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 from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
[Netdev]
[Linux Ethernet Bridging]
[Linux Wireless]
[Kernel Newbies]
[Memory]
[Security]
[Linux for Hams]
[Netfilter]
[Bugtraq]
[Photo]
[Yosemite]
[Yosemite News]
[MIPS Linux]
[ARM Linux]
[Linux RAID]
[Linux Admin]
[Samba]
[Video 4 Linux]
[Linux Resources]