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
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