aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/net_namespace.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/net/net_namespace.h')
-rw-r--r--include/net/net_namespace.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/include/net/net_namespace.h b/include/net/net_namespace.h
index d9dd0f707296..a8eb43cf0c7e 100644
--- a/include/net/net_namespace.h
+++ b/include/net/net_namespace.h
@@ -9,6 +9,7 @@
9#include <linux/list.h> 9#include <linux/list.h>
10 10
11#include <net/netns/core.h> 11#include <net/netns/core.h>
12#include <net/netns/mib.h>
12#include <net/netns/unix.h> 13#include <net/netns/unix.h>
13#include <net/netns/packet.h> 14#include <net/netns/packet.h>
14#include <net/netns/ipv4.h> 15#include <net/netns/ipv4.h>
@@ -37,7 +38,9 @@ struct net {
37 struct proc_dir_entry *proc_net; 38 struct proc_dir_entry *proc_net;
38 struct proc_dir_entry *proc_net_stat; 39 struct proc_dir_entry *proc_net_stat;
39 40
40 struct list_head sysctl_table_headers; 41#ifdef CONFIG_SYSCTL
42 struct ctl_table_set sysctls;
43#endif
41 44
42 struct net_device *loopback_dev; /* The loopback */ 45 struct net_device *loopback_dev; /* The loopback */
43 46
@@ -52,6 +55,7 @@ struct net {
52 struct sock *rtnl; /* rtnetlink socket */ 55 struct sock *rtnl; /* rtnetlink socket */
53 56
54 struct netns_core core; 57 struct netns_core core;
58 struct netns_mib mib;
55 struct netns_packet packet; 59 struct netns_packet packet;
56 struct netns_unix unx; 60 struct netns_unix unx;
57 struct netns_ipv4 ipv4; 61 struct netns_ipv4 ipv4;
@@ -212,8 +216,11 @@ extern void unregister_pernet_gen_device(int id, struct pernet_operations *);
212struct ctl_path; 216struct ctl_path;
213struct ctl_table; 217struct ctl_table;
214struct ctl_table_header; 218struct ctl_table_header;
219
215extern struct ctl_table_header *register_net_sysctl_table(struct net *net, 220extern struct ctl_table_header *register_net_sysctl_table(struct net *net,
216 const struct ctl_path *path, struct ctl_table *table); 221 const struct ctl_path *path, struct ctl_table *table);
222extern struct ctl_table_header *register_net_sysctl_rotable(
223 const struct ctl_path *path, struct ctl_table *table);
217extern void unregister_net_sysctl_table(struct ctl_table_header *header); 224extern void unregister_net_sysctl_table(struct ctl_table_header *header);
218 225
219#endif /* __NET_NET_NAMESPACE_H */ 226#endif /* __NET_NET_NAMESPACE_H */