diff options
| author | Johannes Berg <johannes.berg@intel.com> | 2014-12-23 14:54:40 -0500 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2014-12-27 02:20:23 -0500 |
| commit | c380d9a7afff0e4c2e5f3c1c2dc7d2f4214dd962 (patch) | |
| tree | adc927b4f3fb05268c6ca808aee5d0109351fec1 /include | |
| parent | 7d68536bed72b09de03b07479dd707c5831b3b94 (diff) | |
genetlink: pass multicast bind/unbind to families
In order to make the newly fixed multicast bind/unbind
functionality in generic netlink, pass them down to the
appropriate family.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
| -rw-r--r-- | include/net/genetlink.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/net/genetlink.h b/include/net/genetlink.h index 38620da4aa7a..3ed31e5a445b 100644 --- a/include/net/genetlink.h +++ b/include/net/genetlink.h | |||
| @@ -31,6 +31,9 @@ struct genl_info; | |||
| 31 | * do additional, common, filtering and return an error | 31 | * do additional, common, filtering and return an error |
| 32 | * @post_doit: called after an operation's doit callback, it may | 32 | * @post_doit: called after an operation's doit callback, it may |
| 33 | * undo operations done by pre_doit, for example release locks | 33 | * undo operations done by pre_doit, for example release locks |
| 34 | * @mcast_bind: a socket bound to the given multicast group (which | ||
| 35 | * is given as the offset into the groups array) | ||
| 36 | * @mcast_unbind: a socket was unbound from the given multicast group | ||
| 34 | * @attrbuf: buffer to store parsed attributes | 37 | * @attrbuf: buffer to store parsed attributes |
| 35 | * @family_list: family list | 38 | * @family_list: family list |
| 36 | * @mcgrps: multicast groups used by this family (private) | 39 | * @mcgrps: multicast groups used by this family (private) |
| @@ -53,6 +56,8 @@ struct genl_family { | |||
| 53 | void (*post_doit)(const struct genl_ops *ops, | 56 | void (*post_doit)(const struct genl_ops *ops, |
| 54 | struct sk_buff *skb, | 57 | struct sk_buff *skb, |
| 55 | struct genl_info *info); | 58 | struct genl_info *info); |
| 59 | int (*mcast_bind)(int group); | ||
| 60 | void (*mcast_unbind)(int group); | ||
| 56 | struct nlattr ** attrbuf; /* private */ | 61 | struct nlattr ** attrbuf; /* private */ |
| 57 | const struct genl_ops * ops; /* private */ | 62 | const struct genl_ops * ops; /* private */ |
| 58 | const struct genl_multicast_group *mcgrps; /* private */ | 63 | const struct genl_multicast_group *mcgrps; /* private */ |
