]> git.baikalelectronics.ru Git - kernel.git/commit
netlink: add nlk->netlink_bind hook for module auto-loading
authorPablo Neira Ayuso <pablo@netfilter.org>
Fri, 29 Jun 2012 06:15:22 +0000 (06:15 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 29 Jun 2012 23:46:06 +0000 (16:46 -0700)
commit23c9d6e1fa527efcff443250fb3655b2fead8db9
tree2251b4bed9969a6c8a02a322927a74621b29155c
parent5a50a252ebab06d67c1dc81634420f82956683e7
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>
include/linux/netlink.h
net/netfilter/nfnetlink.c
net/netlink/af_netlink.c