summaryrefslogtreecommitdiff
path: root/libdde_linux26/contrib/include/net/netns
diff options
context:
space:
mode:
Diffstat (limited to 'libdde_linux26/contrib/include/net/netns')
-rw-r--r--libdde_linux26/contrib/include/net/netns/conntrack.h30
-rw-r--r--libdde_linux26/contrib/include/net/netns/core.h16
-rw-r--r--libdde_linux26/contrib/include/net/netns/dccp.h11
-rw-r--r--libdde_linux26/contrib/include/net/netns/generic.h49
-rw-r--r--libdde_linux26/contrib/include/net/netns/hash.h21
-rw-r--r--libdde_linux26/contrib/include/net/netns/ipv4.h58
-rw-r--r--libdde_linux26/contrib/include/net/netns/ipv6.h71
-rw-r--r--libdde_linux26/contrib/include/net/netns/mib.h28
-rw-r--r--libdde_linux26/contrib/include/net/netns/packet.h15
-rw-r--r--libdde_linux26/contrib/include/net/netns/unix.h13
-rw-r--r--libdde_linux26/contrib/include/net/netns/x_tables.h15
-rw-r--r--libdde_linux26/contrib/include/net/netns/xfrm.h56
12 files changed, 0 insertions, 383 deletions
diff --git a/libdde_linux26/contrib/include/net/netns/conntrack.h b/libdde_linux26/contrib/include/net/netns/conntrack.h
deleted file mode 100644
index f4498a62..00000000
--- a/libdde_linux26/contrib/include/net/netns/conntrack.h
+++ /dev/null
@@ -1,30 +0,0 @@
-#ifndef __NETNS_CONNTRACK_H
-#define __NETNS_CONNTRACK_H
-
-#include <linux/list.h>
-#include <asm/atomic.h>
-
-struct ctl_table_header;
-struct nf_conntrack_ecache;
-
-struct netns_ct {
- atomic_t count;
- unsigned int expect_count;
- struct hlist_head *hash;
- struct hlist_head *expect_hash;
- struct hlist_head unconfirmed;
- struct ip_conntrack_stat *stat;
-#ifdef CONFIG_NF_CONNTRACK_EVENTS
- struct nf_conntrack_ecache *ecache;
-#endif
- int sysctl_acct;
- int sysctl_checksum;
- unsigned int sysctl_log_invalid; /* Log invalid packets */
-#ifdef CONFIG_SYSCTL
- struct ctl_table_header *sysctl_header;
- struct ctl_table_header *acct_sysctl_header;
-#endif
- int hash_vmalloc;
- int expect_vmalloc;
-};
-#endif
diff --git a/libdde_linux26/contrib/include/net/netns/core.h b/libdde_linux26/contrib/include/net/netns/core.h
deleted file mode 100644
index 24d4be76..00000000
--- a/libdde_linux26/contrib/include/net/netns/core.h
+++ /dev/null
@@ -1,16 +0,0 @@
-#ifndef __NETNS_CORE_H__
-#define __NETNS_CORE_H__
-
-struct ctl_table_header;
-struct prot_inuse;
-
-struct netns_core {
- /* core sysctls */
- struct ctl_table_header *sysctl_hdr;
-
- int sysctl_somaxconn;
-
- struct prot_inuse *inuse;
-};
-
-#endif
diff --git a/libdde_linux26/contrib/include/net/netns/dccp.h b/libdde_linux26/contrib/include/net/netns/dccp.h
deleted file mode 100644
index 98d2a7ce..00000000
--- a/libdde_linux26/contrib/include/net/netns/dccp.h
+++ /dev/null
@@ -1,11 +0,0 @@
-#ifndef __NETNS_DCCP_H__
-#define __NETNS_DCCP_H__
-
-struct sock;
-
-struct netns_dccp {
- struct sock *v4_ctl_sk;
- struct sock *v6_ctl_sk;
-};
-
-#endif
diff --git a/libdde_linux26/contrib/include/net/netns/generic.h b/libdde_linux26/contrib/include/net/netns/generic.h
deleted file mode 100644
index 0c04fd2a..00000000
--- a/libdde_linux26/contrib/include/net/netns/generic.h
+++ /dev/null
@@ -1,49 +0,0 @@
-/*
- * generic net pointers
- */
-
-#ifndef __NET_GENERIC_H__
-#define __NET_GENERIC_H__
-
-#include <linux/rcupdate.h>
-
-/*
- * Generic net pointers are to be used by modules to put some private
- * stuff on the struct net without explicit struct net modification
- *
- * The rules are simple:
- * 1. register the ops with register_pernet_gen_device to get the id
- * of your private pointer;
- * 2. call net_assign_generic() to put the private data on the struct
- * net (most preferably this should be done in the ->init callback
- * of the ops registered);
- * 3. do not change this pointer while the net is alive;
- * 4. do not try to have any private reference on the net_generic object.
- *
- * After accomplishing all of the above, the private pointer can be
- * accessed with the net_generic() call.
- */
-
-struct net_generic {
- unsigned int len;
- struct rcu_head rcu;
-
- void *ptr[0];
-};
-
-static inline void *net_generic(struct net *net, int id)
-{
- struct net_generic *ng;
- void *ptr;
-
- rcu_read_lock();
- ng = rcu_dereference(net->gen);
- BUG_ON(id == 0 || id > ng->len);
- ptr = ng->ptr[id - 1];
- rcu_read_unlock();
-
- return ptr;
-}
-
-extern int net_assign_generic(struct net *net, int id, void *data);
-#endif
diff --git a/libdde_linux26/contrib/include/net/netns/hash.h b/libdde_linux26/contrib/include/net/netns/hash.h
deleted file mode 100644
index 548d78f2..00000000
--- a/libdde_linux26/contrib/include/net/netns/hash.h
+++ /dev/null
@@ -1,21 +0,0 @@
-#ifndef __NET_NS_HASH_H__
-#define __NET_NS_HASH_H__
-
-#include <asm/cache.h>
-
-struct net;
-
-static inline unsigned net_hash_mix(struct net *net)
-{
-#ifdef CONFIG_NET_NS
- /*
- * shift this right to eliminate bits, that are
- * always zeroed
- */
-
- return (unsigned)(((unsigned long)net) >> L1_CACHE_SHIFT);
-#else
- return 0;
-#endif
-}
-#endif
diff --git a/libdde_linux26/contrib/include/net/netns/ipv4.h b/libdde_linux26/contrib/include/net/netns/ipv4.h
deleted file mode 100644
index 977f482d..00000000
--- a/libdde_linux26/contrib/include/net/netns/ipv4.h
+++ /dev/null
@@ -1,58 +0,0 @@
-/*
- * ipv4 in net namespaces
- */
-
-#ifndef __NETNS_IPV4_H__
-#define __NETNS_IPV4_H__
-
-#include <net/inet_frag.h>
-
-struct ctl_table_header;
-struct ipv4_devconf;
-struct fib_rules_ops;
-struct hlist_head;
-struct sock;
-
-struct netns_ipv4 {
-#ifdef CONFIG_SYSCTL
- struct ctl_table_header *forw_hdr;
- struct ctl_table_header *frags_hdr;
- struct ctl_table_header *ipv4_hdr;
- struct ctl_table_header *route_hdr;
-#endif
- struct ipv4_devconf *devconf_all;
- struct ipv4_devconf *devconf_dflt;
-#ifdef CONFIG_IP_MULTIPLE_TABLES
- struct fib_rules_ops *rules_ops;
-#endif
- struct hlist_head *fib_table_hash;
- struct sock *fibnl;
-
- struct sock **icmp_sk;
- struct sock *tcp_sock;
-
- struct netns_frags frags;
-#ifdef CONFIG_NETFILTER
- struct xt_table *iptable_filter;
- struct xt_table *iptable_mangle;
- struct xt_table *iptable_raw;
- struct xt_table *arptable_filter;
- struct xt_table *iptable_security;
- struct xt_table *nat_table;
- struct hlist_head *nat_bysource;
- int nat_vmalloced;
-#endif
-
- int sysctl_icmp_echo_ignore_all;
- int sysctl_icmp_echo_ignore_broadcasts;
- int sysctl_icmp_ignore_bogus_error_responses;
- int sysctl_icmp_ratelimit;
- int sysctl_icmp_ratemask;
- int sysctl_icmp_errors_use_inbound_ifaddr;
- int sysctl_rt_cache_rebuild_count;
- int current_rt_cache_rebuild_count;
-
- struct timer_list rt_secret_timer;
- atomic_t rt_genid;
-};
-#endif
diff --git a/libdde_linux26/contrib/include/net/netns/ipv6.h b/libdde_linux26/contrib/include/net/netns/ipv6.h
deleted file mode 100644
index afab4e4c..00000000
--- a/libdde_linux26/contrib/include/net/netns/ipv6.h
+++ /dev/null
@@ -1,71 +0,0 @@
-/*
- * ipv6 in net namespaces
- */
-
-#include <net/inet_frag.h>
-
-#ifndef __NETNS_IPV6_H__
-#define __NETNS_IPV6_H__
-
-struct ctl_table_header;
-
-struct netns_sysctl_ipv6 {
-#ifdef CONFIG_SYSCTL
- struct ctl_table_header *table;
- struct ctl_table_header *frags_hdr;
-#endif
- int bindv6only;
- int flush_delay;
- int ip6_rt_max_size;
- int ip6_rt_gc_min_interval;
- int ip6_rt_gc_timeout;
- int ip6_rt_gc_interval;
- int ip6_rt_gc_elasticity;
- int ip6_rt_mtu_expires;
- int ip6_rt_min_advmss;
- int icmpv6_time;
-};
-
-struct netns_ipv6 {
- struct netns_sysctl_ipv6 sysctl;
- struct ipv6_devconf *devconf_all;
- struct ipv6_devconf *devconf_dflt;
- struct netns_frags frags;
-#ifdef CONFIG_NETFILTER
- struct xt_table *ip6table_filter;
- struct xt_table *ip6table_mangle;
- struct xt_table *ip6table_raw;
- struct xt_table *ip6table_security;
-#endif
- struct rt6_info *ip6_null_entry;
- struct rt6_statistics *rt6_stats;
- struct timer_list ip6_fib_timer;
- struct hlist_head *fib_table_hash;
- struct fib6_table *fib6_main_tbl;
- struct dst_ops *ip6_dst_ops;
- unsigned int ip6_rt_gc_expire;
- unsigned long ip6_rt_last_gc;
-#ifdef CONFIG_IPV6_MULTIPLE_TABLES
- struct rt6_info *ip6_prohibit_entry;
- struct rt6_info *ip6_blk_hole_entry;
- struct fib6_table *fib6_local_tbl;
- struct fib_rules_ops *fib6_rules_ops;
-#endif
- struct sock **icmp_sk;
- struct sock *ndisc_sk;
- struct sock *tcp_sk;
- struct sock *igmp_sk;
-#ifdef CONFIG_IPV6_MROUTE
- struct sock *mroute6_sk;
- struct mfc6_cache **mfc6_cache_array;
- struct mif_device *vif6_table;
- int maxvif;
- atomic_t cache_resolve_queue_len;
- int mroute_do_assert;
- int mroute_do_pim;
-#ifdef CONFIG_IPV6_PIMSM_V2
- int mroute_reg_vif_num;
-#endif
-#endif
-};
-#endif
diff --git a/libdde_linux26/contrib/include/net/netns/mib.h b/libdde_linux26/contrib/include/net/netns/mib.h
deleted file mode 100644
index 0b44112e..00000000
--- a/libdde_linux26/contrib/include/net/netns/mib.h
+++ /dev/null
@@ -1,28 +0,0 @@
-#ifndef __NETNS_MIB_H__
-#define __NETNS_MIB_H__
-
-#include <net/snmp.h>
-
-struct netns_mib {
- DEFINE_SNMP_STAT(struct tcp_mib, tcp_statistics);
- DEFINE_SNMP_STAT(struct ipstats_mib, ip_statistics);
- DEFINE_SNMP_STAT(struct linux_mib, net_statistics);
- DEFINE_SNMP_STAT(struct udp_mib, udp_statistics);
- DEFINE_SNMP_STAT(struct udp_mib, udplite_statistics);
- DEFINE_SNMP_STAT(struct icmp_mib, icmp_statistics);
- DEFINE_SNMP_STAT(struct icmpmsg_mib, icmpmsg_statistics);
-
-#if defined(CONFIG_IPV6) || defined(CONFIG_IPV6_MODULE)
- struct proc_dir_entry *proc_net_devsnmp6;
- DEFINE_SNMP_STAT(struct udp_mib, udp_stats_in6);
- DEFINE_SNMP_STAT(struct udp_mib, udplite_stats_in6);
- DEFINE_SNMP_STAT(struct ipstats_mib, ipv6_statistics);
- DEFINE_SNMP_STAT(struct icmpv6_mib, icmpv6_statistics);
- DEFINE_SNMP_STAT(struct icmpv6msg_mib, icmpv6msg_statistics);
-#endif
-#ifdef CONFIG_XFRM_STATISTICS
- DEFINE_SNMP_STAT(struct linux_xfrm_mib, xfrm_statistics);
-#endif
-};
-
-#endif
diff --git a/libdde_linux26/contrib/include/net/netns/packet.h b/libdde_linux26/contrib/include/net/netns/packet.h
deleted file mode 100644
index 637daf69..00000000
--- a/libdde_linux26/contrib/include/net/netns/packet.h
+++ /dev/null
@@ -1,15 +0,0 @@
-/*
- * Packet network namespace
- */
-#ifndef __NETNS_PACKET_H__
-#define __NETNS_PACKET_H__
-
-#include <linux/list.h>
-#include <linux/spinlock.h>
-
-struct netns_packet {
- rwlock_t sklist_lock;
- struct hlist_head sklist;
-};
-
-#endif /* __NETNS_PACKET_H__ */
diff --git a/libdde_linux26/contrib/include/net/netns/unix.h b/libdde_linux26/contrib/include/net/netns/unix.h
deleted file mode 100644
index 284649d4..00000000
--- a/libdde_linux26/contrib/include/net/netns/unix.h
+++ /dev/null
@@ -1,13 +0,0 @@
-/*
- * Unix network namespace
- */
-#ifndef __NETNS_UNIX_H__
-#define __NETNS_UNIX_H__
-
-struct ctl_table_header;
-struct netns_unix {
- int sysctl_max_dgram_qlen;
- struct ctl_table_header *ctl;
-};
-
-#endif /* __NETNS_UNIX_H__ */
diff --git a/libdde_linux26/contrib/include/net/netns/x_tables.h b/libdde_linux26/contrib/include/net/netns/x_tables.h
deleted file mode 100644
index 9554a644..00000000
--- a/libdde_linux26/contrib/include/net/netns/x_tables.h
+++ /dev/null
@@ -1,15 +0,0 @@
-#ifndef __NETNS_X_TABLES_H
-#define __NETNS_X_TABLES_H
-
-#include <linux/list.h>
-#include <linux/netfilter.h>
-
-struct ebt_table;
-
-struct netns_xt {
- struct list_head tables[NFPROTO_NUMPROTO];
- struct ebt_table *broute_table;
- struct ebt_table *frame_filter;
- struct ebt_table *frame_nat;
-};
-#endif
diff --git a/libdde_linux26/contrib/include/net/netns/xfrm.h b/libdde_linux26/contrib/include/net/netns/xfrm.h
deleted file mode 100644
index 1ba91274..00000000
--- a/libdde_linux26/contrib/include/net/netns/xfrm.h
+++ /dev/null
@@ -1,56 +0,0 @@
-#ifndef __NETNS_XFRM_H
-#define __NETNS_XFRM_H
-
-#include <linux/list.h>
-#include <linux/wait.h>
-#include <linux/workqueue.h>
-#include <linux/xfrm.h>
-
-struct ctl_table_header;
-
-struct xfrm_policy_hash {
- struct hlist_head *table;
- unsigned int hmask;
-};
-
-struct netns_xfrm {
- struct list_head state_all;
- /*
- * Hash table to find appropriate SA towards given target (endpoint of
- * tunnel or destination of transport mode) allowed by selector.
- *
- * Main use is finding SA after policy selected tunnel or transport
- * mode. Also, it can be used by ah/esp icmp error handler to find
- * offending SA.
- */
- struct hlist_head *state_bydst;
- struct hlist_head *state_bysrc;
- struct hlist_head *state_byspi;
- unsigned int state_hmask;
- unsigned int state_num;
- struct work_struct state_hash_work;
- struct hlist_head state_gc_list;
- struct work_struct state_gc_work;
-
- wait_queue_head_t km_waitq;
-
- struct list_head policy_all;
- struct hlist_head *policy_byidx;
- unsigned int policy_idx_hmask;
- struct hlist_head policy_inexact[XFRM_POLICY_MAX * 2];
- struct xfrm_policy_hash policy_bydst[XFRM_POLICY_MAX * 2];
- unsigned int policy_count[XFRM_POLICY_MAX * 2];
- struct work_struct policy_hash_work;
-
- struct sock *nlsk;
-
- u32 sysctl_aevent_etime;
- u32 sysctl_aevent_rseqth;
- int sysctl_larval_drop;
- u32 sysctl_acq_expires;
-#ifdef CONFIG_SYSCTL
- struct ctl_table_header *sysctl_hdr;
-#endif
-};
-
-#endif