[PATCH alternative] ifplugd: fix netlink recv
wharms at bfs.de
Tue Jul 9 16:49:07 UTC 2013
Am 09.07.2013 16:33, schrieb Johannes Stezenbach:
> On Tue, Jul 09, 2013 at 03:53:59PM +0200, walter harms wrote:
>> Am 09.07.2013 15:08, schrieb Johannes Stezenbach:
>>> Or is there some max size guaranteed for NETLINK_ROUTE messages
>>> in group RTMGRP_LINK? If not, then the code needs to
>>> be able to handle the max size of a netlink message.
>> according to RFC the buffer size is 1024 bytes.
> Which RFC?
As usual i could not find the exact reference
NTL here the RFC for netlink: http://tools.ietf.org/html/rfc3549
An here the structure of netlink packet (http://qos.ittc.ku.edu/netlink/html/node16.html)
I suspect that the 1024 originate from the packet. I remember only some ascii art
with this size, sorry
// structure of the netlink packet.
struct nlmsghdr n;
struct rtmsg r;
char buf; } req;
More information about the busybox