Re: [PATCH] netlink: add API to retrieve all group memberships

2015-06-15 Thread David Miller
From: David Herrmann Date: Fri, 12 Jun 2015 18:15:38 +0200 > This patch adds getsockopt(SOL_NETLINK, NETLINK_LIST_MEMBERSHIPS) to > retrieve all groups a socket is a member of. Currently, we have to use > getsockname() and look at the nl.nl_groups bitmask. However, this mask is > limited to 32 gr

[PATCH] netlink: add API to retrieve all group memberships

2015-06-12 Thread David Herrmann
This patch adds getsockopt(SOL_NETLINK, NETLINK_LIST_MEMBERSHIPS) to retrieve all groups a socket is a member of. Currently, we have to use getsockname() and look at the nl.nl_groups bitmask. However, this mask is limited to 32 groups. Hence, similar to NETLINK_ADD_MEMBERSHIP and NETLINK_DROP_MEMBE