Skip to contentSkip to conversation

Regarding netlink connector documentation code.

DISCUSSION mindentropy 1 participant 1 message Jul 28, 2011

lore
Share & tools
lore
#0 lore raw

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.