The netlink socket address structure is shown in the following,
struct sockaddr_nl
{
sa_family_t nl_family; /* AF_NETLINK */
unsigned short nl_pad; /* zero */
__u32 nl_pid; /* process pid */
__u32 nl_groups; /* multicast groups mask */
};
Two questions here:
About the process id, does zero mean to root privilege and this means to process id?
what does nl_groups mean? Does this mean I can configure this to do unicast?
Thanks