]> err.no Git - linux-2.6/blobdiff - include/net/net_namespace.h
[SPARC]: Merge asm-sparc{,64}/bugs.h
[linux-2.6] / include / net / net_namespace.h
index b0cf07519b81eb4f1ac71d674fc56d817b51ec3c..28738b7d53eb2a0748cecad1076a9726da8d936f 100644 (file)
@@ -8,9 +8,17 @@
 #include <linux/workqueue.h>
 #include <linux/list.h>
 
+#include <net/netns/unix.h>
+#include <net/netns/packet.h>
+#include <net/netns/ipv4.h>
+#include <net/netns/ipv6.h>
+#include <net/netns/x_tables.h>
+
 struct proc_dir_entry;
 struct net_device;
 struct sock;
+struct ctl_table_header;
+
 struct net {
        atomic_t                count;          /* To decided when the network
                                                 *  namespace should be freed.
@@ -33,14 +41,25 @@ struct net {
        struct hlist_head       *dev_name_head;
        struct hlist_head       *dev_index_head;
 
+       /* core fib_rules */
+       struct list_head        rules_ops;
+       spinlock_t              rules_mod_lock;
+
        struct sock             *rtnl;                  /* rtnetlink socket */
 
-       /* List of all packet sockets. */
-       rwlock_t                packet_sklist_lock;
-       struct hlist_head       packet_sklist;
+       /* core sysctls */
+       struct ctl_table_header *sysctl_core_hdr;
+       int                     sysctl_somaxconn;
 
-       /* unix sockets */
-       int                     sysctl_unix_max_dgram_qlen;
+       struct netns_packet     packet;
+       struct netns_unix       unx;
+       struct netns_ipv4       ipv4;
+#if defined(CONFIG_IPV6) || defined(CONFIG_IPV6_MODULE)
+       struct netns_ipv6       ipv6;
+#endif
+#ifdef CONFIG_NETFILTER
+       struct netns_xt         xt;
+#endif
 };
 
 #ifdef CONFIG_NET