Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 66407
b: refs/heads/master
c: 4fabcd7
h: refs/heads/master
i:
  66405: bf7a7eb
  66403: ad8891c
  66399: 06f34e4
v: v3
  • Loading branch information
Daniel Lezcano authored and David S. Miller committed Oct 10, 2007
1 parent a6f5bac commit deda9db
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e08b09983fe9cf379faf1aefdf9164268d4610e7
refs/heads/master: 4fabcd7118162e36eea5c53e8895ecc13762bef3
2 changes: 1 addition & 1 deletion trunk/include/linux/init_task.h
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ extern struct nsproxy init_nsproxy;
.nslock = __SPIN_LOCK_UNLOCKED(nsproxy.nslock), \
.uts_ns = &init_uts_ns, \
.mnt_ns = NULL, \
.net_ns = &init_net, \
INIT_NET_NS(net_ns) \
INIT_IPC_NS(ipc_ns) \
.user_ns = &init_user_ns, \
}
Expand Down
7 changes: 7 additions & 0 deletions trunk/include/net/net_namespace.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,14 @@ struct net {
struct hlist_head *dev_index_head;
};

#ifdef CONFIG_NET
/* Init's network namespace */
extern struct net init_net;
#define INIT_NET_NS(net_ns) .net_ns = &init_net,
#else
#define INIT_NET_NS(net_ns)
#endif

extern struct list_head net_namespace_list;

extern void __put_net(struct net *net);
Expand Down

0 comments on commit deda9db

Please sign in to comment.