Regarding netlink connector documentation code.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux