]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
netfilter: auto-load ip_queue module when socket opened
authorScott James Remnant <scott@canonical.com>
Mon, 16 Mar 2009 14:31:10 +0000 (15:31 +0100)
committerPatrick McHardy <kaber@trash.net>
Mon, 16 Mar 2009 14:31:10 +0000 (15:31 +0100)
The ip_queue module is missing the net-pf-16-proto-3 alias that would
causae it to be auto-loaded when a socket of that type is opened.  This
patch adds the alias.

Signed-off-by: Scott James Remnant <scott@canonical.com>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
Signed-off-by: Patrick McHardy <kaber@trash.net>
net/ipv4/netfilter/ip_queue.c

index 432ce9d1c11c48268bad47c14345305756aca95c..5f22c91c6e1518c254d3728a53ce65cb409b26d5 100644 (file)
@@ -24,6 +24,7 @@
 #include <linux/proc_fs.h>
 #include <linux/seq_file.h>
 #include <linux/security.h>
+#include <linux/net.h>
 #include <linux/mutex.h>
 #include <net/net_namespace.h>
 #include <net/sock.h>
@@ -640,6 +641,7 @@ static void __exit ip_queue_fini(void)
 MODULE_DESCRIPTION("IPv4 packet queue handler");
 MODULE_AUTHOR("James Morris <jmorris@intercode.com.au>");
 MODULE_LICENSE("GPL");
+MODULE_ALIAS_NET_PF_PROTO(PF_NETLINK, NETLINK_FIREWALL);
 
 module_init(ip_queue_init);
 module_exit(ip_queue_fini);