[PATCH alternative] ifplugd: fix netlink recv

Tito farmatito at tiscali.it
Tue Jul 9 11:47:30 UTC 2013

On Tuesday 09 July 2013 10:18:31 Harald Becker wrote:
> Hi Walther !
> Ok I'm not Tito, but ...
> On 09-07-2013 09:15 walter harms <wharms at bfs.de> wrote:
> >just for my curiosity could you please explain why this works ?
> NLMSG_SPACE(len) is a Macro to return the required buffer space
> to carry a netlink message payload of given length. With the
> maximum payload length you get the maximum required buffer space.
> This is 1024 byte (as before) plus netlink message header size
> plus header padding space ... usually less than 4096 byte ...
> that is you do not waste unnecessary buffer space. 
> --
> Harald
yes this  is the theory I came up with after digging through
the linux/netlin.h header and looking at a few random examples of netlink
code on the net.


More information about the busybox mailing list