linux/net/wimax
Johannes Berg 2a94fe48f3 genetlink: make multicast groups const, prevent abuse
Register generic netlink multicast groups as an array with
the family and give them contiguous group IDs. Then instead
of passing the global group ID to the various functions that
send messages, pass the ID relative to the family - for most
families that's just 0 because the only have one group.

This avoids the list_head and ID in each group, adding a new
field for the mcast group ID offset to the family.

At the same time, this allows us to prevent abusing groups
again like the quota and dropmon code did, since we can now
check that a family only uses a group it owns.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2013-11-19 16:39:06 -05:00
..
Kconfig wimax: depend on rfkill properly 2009-06-04 10:58:15 -04:00
Makefile wimax: Add netlink interface to get device state 2009-05-28 18:02:20 -07:00
debug-levels.h wimax: Add netlink interface to get device state 2009-05-28 18:02:20 -07:00
debugfs.c wimax: Add netlink interface to get device state 2009-05-28 18:02:20 -07:00
id-table.c wimax: fix oops in wimax_dev_get_by_genl_info() when looking up non-wimax iface 2009-02-12 17:00:20 -08:00
op-msg.c genetlink: make multicast groups const, prevent abuse 2013-11-19 16:39:06 -05:00
op-reset.c wimax: use genl_register_family_with_ops() 2013-11-14 17:10:40 -05:00
op-rfkill.c wimax: use genl_register_family_with_ops() 2013-11-14 17:10:40 -05:00
op-state-get.c wimax: use genl_register_family_with_ops() 2013-11-14 17:10:40 -05:00
stack.c genetlink: make multicast groups const, prevent abuse 2013-11-19 16:39:06 -05:00
wimax-internal.h genetlink: make multicast groups const, prevent abuse 2013-11-19 16:39:06 -05:00