]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - include/net/netfilter/nf_conntrack.h
net: CONFIG_NET_NS reduction
[net-next-2.6.git] / include / net / netfilter / nf_conntrack.h
index bde095f7e845754e86bde0f9860866622b0e7aca..bbfdd9453087c8fbdcc23d6a92e989b64f9d532b 100644 (file)
@@ -152,11 +152,7 @@ extern struct net init_net;
 
 static inline struct net *nf_ct_net(const struct nf_conn *ct)
 {
-#ifdef CONFIG_NET_NS
-       return ct->ct_net;
-#else
-       return &init_net;
-#endif
+       return read_pnet(&ct->ct_net);
 }
 
 /* Alter reply tuple (maybe alter helper). */