net_namespace.h (9dd776b6d7b0b85966b6ddd03e2b2aae59012ab1) | net_namespace.h (2774c7aba6c97a2535be3309a2209770953780b3) |
---|---|
1/* 2 * Operations on the network namespace 3 */ 4#ifndef __NET_NET_NAMESPACE_H 5#define __NET_NET_NAMESPACE_H 6 7#include <asm/atomic.h> 8#include <linux/workqueue.h> 9#include <linux/list.h> 10 11struct proc_dir_entry; | 1/* 2 * Operations on the network namespace 3 */ 4#ifndef __NET_NET_NAMESPACE_H 5#define __NET_NET_NAMESPACE_H 6 7#include <asm/atomic.h> 8#include <linux/workqueue.h> 9#include <linux/list.h> 10 11struct proc_dir_entry; |
12struct net_device; |
|
12struct net { 13 atomic_t count; /* To decided when the network 14 * namespace should be freed. 15 */ 16 atomic_t use_count; /* To track references we 17 * destroy on demand 18 */ 19 struct list_head list; /* list of network namespaces */ 20 struct work_struct work; /* work struct for freeing */ 21 22 struct proc_dir_entry *proc_net; 23 struct proc_dir_entry *proc_net_stat; 24 struct proc_dir_entry *proc_net_root; 25 | 13struct net { 14 atomic_t count; /* To decided when the network 15 * namespace should be freed. 16 */ 17 atomic_t use_count; /* To track references we 18 * destroy on demand 19 */ 20 struct list_head list; /* list of network namespaces */ 21 struct work_struct work; /* work struct for freeing */ 22 23 struct proc_dir_entry *proc_net; 24 struct proc_dir_entry *proc_net_stat; 25 struct proc_dir_entry *proc_net_root; 26 |
27 struct net_device *loopback_dev; /* The loopback */ 28 |
|
26 struct list_head dev_base_head; 27 struct hlist_head *dev_name_head; 28 struct hlist_head *dev_index_head; 29}; 30 31#ifdef CONFIG_NET 32/* Init's network namespace */ 33extern struct net init_net; --- 81 unchanged lines hidden --- | 29 struct list_head dev_base_head; 30 struct hlist_head *dev_name_head; 31 struct hlist_head *dev_index_head; 32}; 33 34#ifdef CONFIG_NET 35/* Init's network namespace */ 36extern struct net init_net; --- 81 unchanged lines hidden --- |