netfilter 31/41: auto-load ip_queue module when socket opened

Submitted by Patrick McHardy on March 24, 2009, 2:03 p.m.


Message ID 20090324140344.31401.98568.sendpatchset@x2.localnet
State Accepted
Delegated to: David Miller
Headers show

Commit Message

Patrick McHardy March 24, 2009, 2:03 p.m.
commit 95ba434f898c3cb5c7457dce265bf0ab72ba8ce9
Author: Scott James Remnant <>
Date:   Mon Mar 16 15:31:10 2009 +0100

    netfilter: auto-load ip_queue module when socket opened
    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 <>
    Signed-off-by: Tim Gardner <>
    Signed-off-by: Patrick McHardy <>

To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to
More majordomo info at

Patch hide | download patch | download mbox

diff --git a/net/ipv4/netfilter/ip_queue.c b/net/ipv4/netfilter/ip_queue.c
index 432ce9d..5f22c91 100644
--- a/net/ipv4/netfilter/ip_queue.c
+++ b/net/ipv4/netfilter/ip_queue.c
@@ -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 <>");