Regarding netlink connector documentation code.
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.