On Fri, Oct 23, 2009 at 12:06 AM, Sergei Zhirikov [off-list ref] 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-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html