[PATCH alternative] ifplugd: fix netlink recv

Harald Becker ralda at gmx.de
Tue Jul 9 08:18:31 UTC 2013


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


More information about the busybox mailing list