kernel-fxtec-pro1x/net/ieee802154
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
..
6lowpan.c 6lowpan: Uncompression of traffic class field was incorrect 2013-11-15 03:11:06 -05:00
6lowpan.h 6lowpan: lowpan_uncompress_addr with address_mode 2013-08-20 13:23:12 -07:00
af802154.h
af_ieee802154.c ieee802154: free skb buffer if dev isn't running 2011-06-30 16:18:09 +04:00
dgram.c inet: prevent leakage of uninitialized memory to user in recv syscalls 2013-11-18 15:12:03 -05:00
ieee802154.h genetlink: make multicast groups const, prevent abuse 2013-11-19 16:39:06 -05:00
Kconfig net/ieee802154: remove depends on CONFIG_EXPERIMENTAL 2013-01-11 11:40:00 -08:00
Makefile IEEE802.15.4: 6LoWPAN basic support 2011-08-24 19:36:06 -07:00
netlink.c genetlink: make multicast groups const, prevent abuse 2013-11-19 16:39:06 -05:00
nl-mac.c genetlink: make multicast groups const, prevent abuse 2013-11-19 16:39:06 -05:00
nl-phy.c ieee802154: use genl_register_family_with_ops() 2013-11-14 17:10:40 -05:00
nl_policy.c ieee802154: add LIST_PHY command support 2009-11-06 14:31:22 +03:00
raw.c hlist: drop the node parameter from iterators 2013-02-27 19:10:24 -08:00
wpan-class.c net: ieee802154: convert class code to use dev_groups 2013-07-26 18:05:18 -07:00