net_namespace.h (eb5bc2a213f96bd43b5f00a625acb0c669613645) | net_namespace.h (33cf7c90fe2f97afb1cadaa0cfb782cb9d1b9ee2) |
---|---|
1/* 2 * Operations on the network namespace 3 */ 4#ifndef __NET_NET_NAMESPACE_H 5#define __NET_NET_NAMESPACE_H 6 7#include <linux/atomic.h> 8#include <linux/workqueue.h> --- 12 unchanged lines hidden (view full) --- 21#include <net/netns/dccp.h> 22#include <net/netns/netfilter.h> 23#include <net/netns/x_tables.h> 24#if defined(CONFIG_NF_CONNTRACK) || defined(CONFIG_NF_CONNTRACK_MODULE) 25#include <net/netns/conntrack.h> 26#endif 27#include <net/netns/nftables.h> 28#include <net/netns/xfrm.h> | 1/* 2 * Operations on the network namespace 3 */ 4#ifndef __NET_NET_NAMESPACE_H 5#define __NET_NET_NAMESPACE_H 6 7#include <linux/atomic.h> 8#include <linux/workqueue.h> --- 12 unchanged lines hidden (view full) --- 21#include <net/netns/dccp.h> 22#include <net/netns/netfilter.h> 23#include <net/netns/x_tables.h> 24#if defined(CONFIG_NF_CONNTRACK) || defined(CONFIG_NF_CONNTRACK_MODULE) 25#include <net/netns/conntrack.h> 26#endif 27#include <net/netns/nftables.h> 28#include <net/netns/xfrm.h> |
29#include <net/netns/mpls.h> |
|
29#include <linux/ns_common.h> 30 31struct user_namespace; 32struct proc_dir_entry; 33struct net_device; 34struct sock; 35struct ctl_table_header; 36struct net_generic; --- 13 unchanged lines hidden (view full) --- 50 */ 51#ifdef NETNS_REFCNT_DEBUG 52 atomic_t use_count; /* To track references we 53 * destroy on demand 54 */ 55#endif 56 spinlock_t rules_mod_lock; 57 | 30#include <linux/ns_common.h> 31 32struct user_namespace; 33struct proc_dir_entry; 34struct net_device; 35struct sock; 36struct ctl_table_header; 37struct net_generic; --- 13 unchanged lines hidden (view full) --- 51 */ 52#ifdef NETNS_REFCNT_DEBUG 53 atomic_t use_count; /* To track references we 54 * destroy on demand 55 */ 56#endif 57 spinlock_t rules_mod_lock; 58 |
59 atomic64_t cookie_gen; 60 |
|
58 struct list_head list; /* list of network namespaces */ 59 struct list_head cleanup_list; /* namespaces on death row */ 60 struct list_head exit_list; /* Use only net_mutex */ 61 62 struct user_namespace *user_ns; /* Owning user namespace */ 63 struct idr netns_ids; 64 65 struct ns_common ns; --- 59 unchanged lines hidden (view full) --- 125 126 /* Note : following structs are cache line aligned */ 127#ifdef CONFIG_XFRM 128 struct netns_xfrm xfrm; 129#endif 130#if IS_ENABLED(CONFIG_IP_VS) 131 struct netns_ipvs *ipvs; 132#endif | 61 struct list_head list; /* list of network namespaces */ 62 struct list_head cleanup_list; /* namespaces on death row */ 63 struct list_head exit_list; /* Use only net_mutex */ 64 65 struct user_namespace *user_ns; /* Owning user namespace */ 66 struct idr netns_ids; 67 68 struct ns_common ns; --- 59 unchanged lines hidden (view full) --- 128 129 /* Note : following structs are cache line aligned */ 130#ifdef CONFIG_XFRM 131 struct netns_xfrm xfrm; 132#endif 133#if IS_ENABLED(CONFIG_IP_VS) 134 struct netns_ipvs *ipvs; 135#endif |
136#if IS_ENABLED(CONFIG_MPLS) 137 struct netns_mpls mpls; 138#endif |
|
133 struct sock *diag_nlsk; 134 atomic_t fnhe_genid; 135}; 136 137#include <linux/seq_file_net.h> 138 139/* Init's network namespace */ 140extern struct net init_net; --- 252 unchanged lines hidden --- | 139 struct sock *diag_nlsk; 140 atomic_t fnhe_genid; 141}; 142 143#include <linux/seq_file_net.h> 144 145/* Init's network namespace */ 146extern struct net init_net; --- 252 unchanged lines hidden --- |