From mboxrd@z Thu Jan 1 00:00:00 1970 From: mindentropy@gmail.com (mindentropy) Date: Fri, 29 Jul 2011 02:09:09 +0530 Subject: Regarding netlink connector documentation code. Message-ID: <201107290209.09592.mindentropy@gmail.com> To: kernelnewbies@lists.kernelnewbies.org List-Id: kernelnewbies.lists.kernelnewbies.org Hi, In the example of the netlink connector code can somebody clarify if the coding is not right? The buf here (http://lxr.linux.no/#linux+v3.0/Documentation/connector/ucon.c#L114) is 1024 which will be cn_msg. In the nlmsghdr the buf is 128(http://lxr.linux.no/#linux+v3.0/Documentation/connector/ucon.c#L65). Should the nlmsghdr be atleast bigger than the cn_msg? I understand the payload len being 0 and this being just an example with hardcoded values. Thanks.