Blame view

include/net/netns/ipv4.h 3.11 KB
8afd351c7   Pavel Emelyanov   [NETNS]: Add the ...
1
2
3
4
5
6
  /*
   * ipv4 in net namespaces
   */
  
  #ifndef __NETNS_IPV4_H__
  #define __NETNS_IPV4_H__
e4e4971c5   Denis V. Lunev   [NETNS]: Namespac...
7

7064d16e1   Eric W. Biederman   userns: Use kgids...
8
  #include <linux/uidgid.h>
ac18e7509   Pavel Emelyanov   [NETNS][FRAGS]: M...
9
  #include <net/inet_frag.h>
a7e535312   Alexander Duyck   fib_trie: Make fi...
10
  #include <linux/rcupdate.h>
ac18e7509   Pavel Emelyanov   [NETNS][FRAGS]: M...
11

51c5d0c4b   David S. Miller   tcp: Maintain dyn...
12
  struct tcpm_hash_bucket;
752d14dc6   Pavel Emelyanov   [IPV4]: Move the ...
13
14
  struct ctl_table_header;
  struct ipv4_devconf;
e4e4971c5   Denis V. Lunev   [NETNS]: Namespac...
15
  struct fib_rules_ops;
e4aef8aea   Denis V. Lunev   [NETNS]: Place fi...
16
  struct hlist_head;
f4530fa57   David S. Miller   ipv4: Avoid overh...
17
  struct fib_table;
6bd48fcf7   Denis V. Lunev   [NETNS]: Provide ...
18
  struct sock;
0bbf87d85   Eric W. Biederman   net ipv4: Convert...
19
20
21
  struct local_ports {
  	seqlock_t	lock;
  	int		range[2];
ed2dfd900   Eric Dumazet   tcp/dccp: warn us...
22
  	bool		warned;
0bbf87d85   Eric W. Biederman   net ipv4: Convert...
23
  };
752d14dc6   Pavel Emelyanov   [IPV4]: Move the ...
24

ba6b918ab   Cong Wang   ping: move ping_g...
25
26
27
28
  struct ping_group_range {
  	seqlock_t	lock;
  	kgid_t		range[2];
  };
8afd351c7   Pavel Emelyanov   [NETNS]: Add the ...
29
  struct netns_ipv4 {
2a75de0c1   Eric Dumazet   [NETNS]: Should b...
30
  #ifdef CONFIG_SYSCTL
752d14dc6   Pavel Emelyanov   [IPV4]: Move the ...
31
  	struct ctl_table_header	*forw_hdr;
e4a2d5c2b   Pavel Emelyanov   [NETNS][FRAGS]: D...
32
  	struct ctl_table_header	*frags_hdr;
68528f099   Pavel Emelyanov   [NETNS][ICMP]: Ma...
33
  	struct ctl_table_header	*ipv4_hdr;
39a23e750   Denis V. Lunev   netns: register n...
34
  	struct ctl_table_header *route_hdr;
8d068875c   Michal Kubecek   xfrm: make gc_thr...
35
  	struct ctl_table_header *xfrm4_hdr;
2a75de0c1   Eric Dumazet   [NETNS]: Should b...
36
  #endif
752d14dc6   Pavel Emelyanov   [IPV4]: Move the ...
37
38
  	struct ipv4_devconf	*devconf_all;
  	struct ipv4_devconf	*devconf_dflt;
e4e4971c5   Denis V. Lunev   [NETNS]: Namespac...
39
40
  #ifdef CONFIG_IP_MULTIPLE_TABLES
  	struct fib_rules_ops	*rules_ops;
f4530fa57   David S. Miller   ipv4: Avoid overh...
41
  	bool			fib_has_custom_rules;
a7e535312   Alexander Duyck   fib_trie: Make fi...
42
43
44
  	struct fib_table __rcu	*fib_local;
  	struct fib_table __rcu	*fib_main;
  	struct fib_table __rcu	*fib_default;
f4530fa57   David S. Miller   ipv4: Avoid overh...
45
46
47
  #endif
  #ifdef CONFIG_IP_ROUTE_CLASSID
  	int			fib_num_tclassid_users;
e4e4971c5   Denis V. Lunev   [NETNS]: Namespac...
48
  #endif
e4aef8aea   Denis V. Lunev   [NETNS]: Place fi...
49
  	struct hlist_head	*fib_table_hash;
448b128a1   Scott Feldman   ipv4: add net boo...
50
  	bool			fib_offload_disabled;
6bd48fcf7   Denis V. Lunev   [NETNS]: Provide ...
51
  	struct sock		*fibnl;
ac18e7509   Pavel Emelyanov   [NETNS][FRAGS]: M...
52

349c9e3c7   Eric Dumazet   ipv4: icmp: use p...
53
  	struct sock  * __percpu	*icmp_sk;
93a714d6b   Madhu Challa   multicast: Extend...
54
  	struct sock		*mc_autojoin_sk;
349c9e3c7   Eric Dumazet   ipv4: icmp: use p...
55

c8a627ed0   Gao feng   inetpeer: add nam...
56
  	struct inet_peer_base	*peers;
bdbbb8527   Eric Dumazet   ipv4: tcp: get ri...
57
  	struct sock  * __percpu	*tcp_sk;
ac18e7509   Pavel Emelyanov   [NETNS][FRAGS]: M...
58
  	struct netns_frags	frags;
9335f047f   Alexey Dobriyan   [NETFILTER]: ip_t...
59
60
61
62
  #ifdef CONFIG_NETFILTER
  	struct xt_table		*iptable_filter;
  	struct xt_table		*iptable_mangle;
  	struct xt_table		*iptable_raw;
9ea0cb260   Alexey Dobriyan   [NETFILTER]: arp_...
63
  	struct xt_table		*arptable_filter;
e9d3897cc   Alexey Dobriyan   netfilter: netns:...
64
  #ifdef CONFIG_SECURITY
560ee653b   James Morris   netfilter: ip_tab...
65
  	struct xt_table		*iptable_security;
e9d3897cc   Alexey Dobriyan   netfilter: netns:...
66
  #endif
e099a1735   Alexey Dobriyan   netfilter: netns ...
67
  	struct xt_table		*nat_table;
9335f047f   Alexey Dobriyan   [NETFILTER]: ip_t...
68
  #endif
a24022e18   Pavel Emelyanov   [NETNS][ICMP]: Mo...
69
70
71
72
73
74
75
  
  	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;
9f5e97e53   Denis V. Lunev   netns: make rt_se...
76

c9d8f1a64   Cong Wang   ipv4: move local_...
77
  	struct local_ports ip_local_ports;
0bbf87d85   Eric W. Biederman   net ipv4: Convert...
78

5d134f1c1   Hannes Frederic Sowa   tcp: make sysctl_...
79
  	int sysctl_tcp_ecn;
492135557   Daniel Borkmann   tcp: add rfc3168,...
80
  	int sysctl_tcp_ecn_fallback;
fa50d974d   Nikolay Borisov   ipv4: Namespaceif...
81
  	int sysctl_ip_default_ttl;
974eda11c   Hannes Frederic Sowa   inet: make no_pmt...
82
  	int sysctl_ip_no_pmtu_disc;
f87c10a8a   Hannes Frederic Sowa   ipv4: introduce i...
83
  	int sysctl_ip_fwd_use_pmtu;
49a601589   Vincent Bernat   net/ipv4: bind ip...
84
  	int sysctl_ip_nonlocal_bind;
287b7f38f   Nikolay Borisov   ipv4: Namespacify...
85
86
  	/* Shall we try to damage output packets if routing dev changes? */
  	int sysctl_ip_dynaddr;
e21145a98   Nikolay Borisov   ipv4: namespacify...
87
  	int sysctl_ip_early_demux;
5d134f1c1   Hannes Frederic Sowa   tcp: make sysctl_...
88

e110861f8   Lorenzo Colitti   net: add a sysctl...
89
  	int sysctl_fwmark_reflect;
84f39b08d   Lorenzo Colitti   net: support mark...
90
  	int sysctl_tcp_fwmark_accept;
6dd9a14e9   David Ahern   net: Allow accept...
91
92
93
  #ifdef CONFIG_NET_L3_MASTER_DEV
  	int sysctl_tcp_l3mdev_accept;
  #endif
b0f9ca53c   Fan Du   ipv4: Namespecify...
94
95
  	int sysctl_tcp_mtu_probing;
  	int sysctl_tcp_base_mss;
6b58e0a5f   Fan Du   ipv4: Use binary ...
96
  	int sysctl_tcp_probe_threshold;
05cbc0db0   Fan Du   ipv4: Create prob...
97
  	u32 sysctl_tcp_probe_interval;
e110861f8   Lorenzo Colitti   net: add a sysctl...
98

13b287e8d   Nikolay Borisov   ipv4: Namespaceif...
99
  	int sysctl_tcp_keepalive_time;
9bd6861bd   Nikolay Borisov   ipv4: Namespecify...
100
  	int sysctl_tcp_keepalive_probes;
b840d15d3   Nikolay Borisov   ipv4: Namespecify...
101
  	int sysctl_tcp_keepalive_intvl;
13b287e8d   Nikolay Borisov   ipv4: Namespaceif...
102

6fa251663   Nikolay Borisov   ipv4: Namespaceif...
103
  	int sysctl_tcp_syn_retries;
7c083ecb3   Nikolay Borisov   ipv4: Namespaceif...
104
  	int sysctl_tcp_synack_retries;
12ed8244e   Nikolay Borisov   ipv4: Namespaceif...
105
  	int sysctl_tcp_syncookies;
1043e25ff   Nikolay Borisov   ipv4: Namespaceif...
106
  	int sysctl_tcp_reordering;
ae5c3f406   Nikolay Borisov   ipv4: Namespaceif...
107
  	int sysctl_tcp_retries1;
c6214a97c   Nikolay Borisov   ipv4: Namespaceif...
108
  	int sysctl_tcp_retries2;
c402d9bef   Nikolay Borisov   ipv4: Namespaceif...
109
  	int sysctl_tcp_orphan_retries;
1e579caa1   Nikolay Borisov   ipv4: Namespaceif...
110
  	int sysctl_tcp_fin_timeout;
4979f2d9f   Nikolay Borisov   ipv4: Namespaceif...
111
  	unsigned int sysctl_tcp_notsent_lowat;
12ed8244e   Nikolay Borisov   ipv4: Namespaceif...
112

815c52700   Nikolay Borisov   igmp: Namespaceif...
113
  	int sysctl_igmp_max_memberships;
166b6b2d6   Nikolay Borisov   igmp: Namespaceif...
114
  	int sysctl_igmp_max_msf;
87a8a2ae6   Nikolay Borisov   igmp: Namespaceif...
115
  	int sysctl_igmp_llm_reports;
165094afc   Nikolay Borisov   igmp: Namespacify...
116
  	int sysctl_igmp_qrv;
815c52700   Nikolay Borisov   igmp: Namespaceif...
117

ba6b918ab   Cong Wang   ping: move ping_g...
118
  	struct ping_group_range ping_group_range;
c319b4d76   Vasiliy Kulikov   net: ipv4: add IP...
119

436c3b66e   David S. Miller   ipv4: Invalidate ...
120
  	atomic_t dev_addr_genid;
70a269e6c   Benjamin Thery   netns: ipmr: allo...
121

122ff243f   WANG Cong   ipv4: make ip_loc...
122
123
124
  #ifdef CONFIG_SYSCTL
  	unsigned long *sysctl_local_reserved_ports;
  #endif
70a269e6c   Benjamin Thery   netns: ipmr: allo...
125
  #ifdef CONFIG_IP_MROUTE
f0ad0860d   Patrick McHardy   ipv4: ipmr: suppo...
126
  #ifndef CONFIG_IP_MROUTE_MULTIPLE_TABLES
0c12295a7   Patrick McHardy   ipv4: ipmr: move ...
127
  	struct mr_table		*mrt;
f0ad0860d   Patrick McHardy   ipv4: ipmr: suppo...
128
129
130
131
  #else
  	struct list_head	mr_tables;
  	struct fib_rules_ops	*mr_rules_ops;
  #endif
70a269e6c   Benjamin Thery   netns: ipmr: allo...
132
  #endif
ca4c3fc24   fan.du   net: split rt_gen...
133
  	atomic_t	rt_genid;
8afd351c7   Pavel Emelyanov   [NETNS]: Add the ...
134
135
  };
  #endif