diff options
Diffstat (limited to 'include/net/net_namespace.h')
-rw-r--r-- | include/net/net_namespace.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/net/net_namespace.h b/include/net/net_namespace.h index 2e8756b8c775..36faf4990c4b 100644 --- a/include/net/net_namespace.h +++ b/include/net/net_namespace.h | |||
@@ -60,6 +60,7 @@ struct net { | |||
60 | struct list_head exit_list; /* Use only net_mutex */ | 60 | struct list_head exit_list; /* Use only net_mutex */ |
61 | 61 | ||
62 | struct user_namespace *user_ns; /* Owning user namespace */ | 62 | struct user_namespace *user_ns; /* Owning user namespace */ |
63 | struct idr netns_ids; | ||
63 | 64 | ||
64 | struct ns_common ns; | 65 | struct ns_common ns; |
65 | 66 | ||
@@ -290,6 +291,9 @@ static inline struct net *read_pnet(struct net * const *pnet) | |||
290 | #define __net_initconst __initconst | 291 | #define __net_initconst __initconst |
291 | #endif | 292 | #endif |
292 | 293 | ||
294 | int peernet2id(struct net *net, struct net *peer); | ||
295 | struct net *get_net_ns_by_id(struct net *net, int id); | ||
296 | |||
293 | struct pernet_operations { | 297 | struct pernet_operations { |
294 | struct list_head list; | 298 | struct list_head list; |
295 | int (*init)(struct net *net); | 299 | int (*init)(struct net *net); |