aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/netlink.h
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2012-06-29 02:15:22 -0400
committerDavid S. Miller <davem@davemloft.net>2012-06-29 19:46:06 -0400
commit03292745b02d1166e2a215504407e096b8427be5 (patch)
tree2251b4bed9969a6c8a02a322927a74621b29155c /include/linux/netlink.h
parenta31f2d17b331db970259e875b7223d3aba7e3821 (diff)
netlink: add nlk->netlink_bind hook for module auto-loading
This patch adds a hook in the binding path of netlink. This is used by ctnetlink to allow module autoloading for the case in which one user executes: conntrack -E So far, this resulted in nfnetlink loaded, but not nf_conntrack_netlink. I have received in the past many complains on this behaviour. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/netlink.h')
-rw-r--r--include/linux/netlink.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/netlink.h b/include/linux/netlink.h
index 6085e4919cb3..f74dd133788f 100644
--- a/include/linux/netlink.h
+++ b/include/linux/netlink.h
@@ -179,6 +179,7 @@ struct netlink_kernel_cfg {
179 unsigned int groups; 179 unsigned int groups;
180 void (*input)(struct sk_buff *skb); 180 void (*input)(struct sk_buff *skb);
181 struct mutex *cb_mutex; 181 struct mutex *cb_mutex;
182 void (*bind)(int group);
182}; 183};
183 184
184extern struct sock *netlink_kernel_create(struct net *net, int unit, 185extern struct sock *netlink_kernel_create(struct net *net, int unit,