]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - net/netfilter/core.c
[NETFILTER]: nf_conntrack_sip: RTP routing optimization
[linux-2.6-omap-h63xx.git] / net / netfilter / core.c
index c4065b8f9a95f6abb66242a3c3a9f8a7990da552..292fa28146fb33cfe5beb77e70c95a4f8caa96e2 100644 (file)
@@ -165,6 +165,14 @@ int nf_hook_slow(int pf, unsigned int hook, struct sk_buff *skb,
        unsigned int verdict;
        int ret = 0;
 
+#ifdef CONFIG_NET_NS
+       struct net *net;
+
+       net = indev == NULL ? dev_net(outdev) : dev_net(indev);
+       if (net != &init_net)
+               return 1;
+#endif
+
        /* We may already have this, but read-locks nest anyway */
        rcu_read_lock();