2007-12-16 14:29:36 -07:00
|
|
|
/*
|
|
|
|
* ipv4 in net namespaces
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __NETNS_IPV4_H__
|
|
|
|
#define __NETNS_IPV4_H__
|
2008-01-10 04:27:51 -07:00
|
|
|
|
2008-01-22 07:02:14 -07:00
|
|
|
#include <net/inet_frag.h>
|
|
|
|
|
2007-12-16 14:31:47 -07:00
|
|
|
struct ctl_table_header;
|
|
|
|
struct ipv4_devconf;
|
2008-01-10 04:27:51 -07:00
|
|
|
struct fib_rules_ops;
|
2008-01-10 04:28:24 -07:00
|
|
|
struct hlist_head;
|
2008-01-10 04:28:55 -07:00
|
|
|
struct sock;
|
2007-12-16 14:31:47 -07:00
|
|
|
|
2007-12-16 14:29:36 -07:00
|
|
|
struct netns_ipv4 {
|
2008-01-06 00:08:49 -07:00
|
|
|
#ifdef CONFIG_SYSCTL
|
2007-12-16 14:31:47 -07:00
|
|
|
struct ctl_table_header *forw_hdr;
|
2008-01-22 07:08:36 -07:00
|
|
|
struct ctl_table_header *frags_hdr;
|
2008-03-26 02:56:24 -06:00
|
|
|
struct ctl_table_header *ipv4_hdr;
|
2008-07-05 20:02:33 -06:00
|
|
|
struct ctl_table_header *route_hdr;
|
2008-01-06 00:08:49 -07:00
|
|
|
#endif
|
2007-12-16 14:31:47 -07:00
|
|
|
struct ipv4_devconf *devconf_all;
|
|
|
|
struct ipv4_devconf *devconf_dflt;
|
2008-01-10 04:27:51 -07:00
|
|
|
#ifdef CONFIG_IP_MULTIPLE_TABLES
|
|
|
|
struct fib_rules_ops *rules_ops;
|
|
|
|
#endif
|
2008-01-10 04:28:24 -07:00
|
|
|
struct hlist_head *fib_table_hash;
|
2008-01-10 04:28:55 -07:00
|
|
|
struct sock *fibnl;
|
2008-01-22 07:02:14 -07:00
|
|
|
|
2008-02-29 12:19:58 -07:00
|
|
|
struct sock **icmp_sk;
|
2008-04-03 15:31:33 -06:00
|
|
|
struct sock *tcp_sock;
|
2008-02-29 12:19:58 -07:00
|
|
|
|
2008-01-22 07:02:14 -07:00
|
|
|
struct netns_frags frags;
|
2008-01-31 05:03:23 -07:00
|
|
|
#ifdef CONFIG_NETFILTER
|
|
|
|
struct xt_table *iptable_filter;
|
|
|
|
struct xt_table *iptable_mangle;
|
|
|
|
struct xt_table *iptable_raw;
|
2008-01-31 05:05:09 -07:00
|
|
|
struct xt_table *arptable_filter;
|
2008-06-09 16:57:24 -06:00
|
|
|
struct xt_table *iptable_security;
|
2008-10-08 03:35:10 -06:00
|
|
|
struct xt_table *nat_table;
|
2008-10-08 03:35:11 -06:00
|
|
|
struct hlist_head *nat_bysource;
|
|
|
|
int nat_vmalloced;
|
2008-01-31 05:03:23 -07:00
|
|
|
#endif
|
2008-03-26 02:55:37 -06:00
|
|
|
|
|
|
|
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;
|
2008-10-27 13:28:25 -06:00
|
|
|
int sysctl_rt_cache_rebuild_count;
|
|
|
|
int current_rt_cache_rebuild_count;
|
2008-07-05 20:02:59 -06:00
|
|
|
|
|
|
|
struct timer_list rt_secret_timer;
|
2008-07-05 20:04:32 -06:00
|
|
|
atomic_t rt_genid;
|
2009-01-21 21:56:15 -07:00
|
|
|
|
|
|
|
#ifdef CONFIG_IP_MROUTE
|
|
|
|
struct sock *mroute_sk;
|
2009-01-21 21:56:18 -07:00
|
|
|
struct mfc_cache **mfc_cache_array;
|
2009-01-21 21:56:16 -07:00
|
|
|
struct vif_device *vif_table;
|
|
|
|
int maxvif;
|
2009-01-21 21:56:19 -07:00
|
|
|
atomic_t cache_resolve_queue_len;
|
2009-01-21 21:56:20 -07:00
|
|
|
int mroute_do_assert;
|
|
|
|
int mroute_do_pim;
|
2009-01-21 21:56:21 -07:00
|
|
|
#if defined(CONFIG_IP_PIMSM_V1) || defined(CONFIG_IP_PIMSM_V2)
|
|
|
|
int mroute_reg_vif_num;
|
|
|
|
#endif
|
2009-01-21 21:56:15 -07:00
|
|
|
#endif
|
2007-12-16 14:29:36 -07:00
|
|
|
};
|
|
|
|
#endif
|