diff options
Diffstat (limited to 'include/net/net_namespace.h')
-rw-r--r-- | include/net/net_namespace.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/net/net_namespace.h b/include/net/net_namespace.h index fac42db7f6d0..3081b6ed35fe 100644 --- a/include/net/net_namespace.h +++ b/include/net/net_namespace.h | |||
@@ -28,7 +28,14 @@ struct net { | |||
28 | struct hlist_head *dev_index_head; | 28 | struct hlist_head *dev_index_head; |
29 | }; | 29 | }; |
30 | 30 | ||
31 | #ifdef CONFIG_NET | ||
32 | /* Init's network namespace */ | ||
31 | extern struct net init_net; | 33 | extern struct net init_net; |
34 | #define INIT_NET_NS(net_ns) .net_ns = &init_net, | ||
35 | #else | ||
36 | #define INIT_NET_NS(net_ns) | ||
37 | #endif | ||
38 | |||
32 | extern struct list_head net_namespace_list; | 39 | extern struct list_head net_namespace_list; |
33 | 40 | ||
34 | extern void __put_net(struct net *net); | 41 | extern void __put_net(struct net *net); |