rtnetlink(3) undeclared variable in example

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



In man 3 rtnetlink, the example code includes the lines:

           rta = (struct rtattr *)(((char *) &req) +
                                         NLMSG_ALIGN(n->nlmsg_len));

in which the variable "n" is nowhere declared.  It seems likely that
NLMSG_ALIGN(req.nh.nlmsg_len) was intended, albeit I am so deeply
ignorant of relevant systems that I am learning about them by reading
man pages, so I may easilly be wrong ...

I am also acutely aware of the bug already noted on the man page, but
you clearly already know about that one !

	Eddy.
--
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

[Index of Archives]     [Kernel Documentation]     [Netdev]     [Linux Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux