Thread (1 message) 1 message, 1 author, 2012-03-24

Re: A bug in rtnetlink(3) man page?

From: Michael Kerrisk (man-pages) <hidden>
Date: 2012-03-24 00:12:14

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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help