aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/sctp/structs.h
diff options
context:
space:
mode:
authorEric W. Biederman <ebiederm@xmission.com>2012-08-07 03:29:57 -0400
committerDavid S. Miller <davem@davemloft.net>2012-08-15 02:32:16 -0400
commite1fc3b14f9a90d9591016749289f2c3d7b35fbf4 (patch)
tree709a6cfe1ac2d7164c9661a8c393a91d83ee6c85 /include/net/sctp/structs.h
parentf53b5b097e58361668b785eff9f7bcd12b4255ec (diff)
sctp: Make sysctl tunables per net
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/sctp/structs.h')
-rw-r--r--include/net/sctp/structs.h116
1 files changed, 0 insertions, 116 deletions
diff --git a/include/net/sctp/structs.h b/include/net/sctp/structs.h
index 18052b421203..0fef00f5d3ce 100644
--- a/include/net/sctp/structs.h
+++ b/include/net/sctp/structs.h
@@ -119,69 +119,6 @@ struct sctp_hashbucket {
119 119
120/* The SCTP globals structure. */ 120/* The SCTP globals structure. */
121extern struct sctp_globals { 121extern struct sctp_globals {
122 /* RFC2960 Section 14. Suggested SCTP Protocol Parameter Values
123 *
124 * The following protocol parameters are RECOMMENDED:
125 *
126 * RTO.Initial - 3 seconds
127 * RTO.Min - 1 second
128 * RTO.Max - 60 seconds
129 * RTO.Alpha - 1/8 (3 when converted to right shifts.)
130 * RTO.Beta - 1/4 (2 when converted to right shifts.)
131 */
132 unsigned int rto_initial;
133 unsigned int rto_min;
134 unsigned int rto_max;
135
136 /* Note: rto_alpha and rto_beta are really defined as inverse
137 * powers of two to facilitate integer operations.
138 */
139 int rto_alpha;
140 int rto_beta;
141
142 /* Max.Burst - 4 */
143 int max_burst;
144
145 /* Whether Cookie Preservative is enabled(1) or not(0) */
146 int cookie_preserve_enable;
147
148 /* Valid.Cookie.Life - 60 seconds */
149 unsigned int valid_cookie_life;
150
151 /* Delayed SACK timeout 200ms default*/
152 unsigned int sack_timeout;
153
154 /* HB.interval - 30 seconds */
155 unsigned int hb_interval;
156
157 /* Association.Max.Retrans - 10 attempts
158 * Path.Max.Retrans - 5 attempts (per destination address)
159 * Max.Init.Retransmits - 8 attempts
160 */
161 int max_retrans_association;
162 int max_retrans_path;
163 int max_retrans_init;
164
165 /* Potentially-Failed.Max.Retrans sysctl value
166 * taken from:
167 * http://tools.ietf.org/html/draft-nishida-tsvwg-sctp-failover-05
168 */
169 int pf_retrans;
170
171 /*
172 * Policy for preforming sctp/socket accounting
173 * 0 - do socket level accounting, all assocs share sk_sndbuf
174 * 1 - do sctp accounting, each asoc may use sk_sndbuf bytes
175 */
176 int sndbuf_policy;
177
178 /*
179 * Policy for preforming sctp/socket accounting
180 * 0 - do socket level accounting, all assocs share sk_rcvbuf
181 * 1 - do sctp accounting, each asoc may use sk_rcvbuf bytes
182 */
183 int rcvbuf_policy;
184
185 /* The following variables are implementation specific. */ 122 /* The following variables are implementation specific. */
186 123
187 /* Default initialization values to be applied to new associations. */ 124 /* Default initialization values to be applied to new associations. */
@@ -205,56 +142,11 @@ extern struct sctp_globals {
205 int port_hashsize; 142 int port_hashsize;
206 struct sctp_bind_hashbucket *port_hashtable; 143 struct sctp_bind_hashbucket *port_hashtable;
207 144
208 int default_auto_asconf;
209
210 /* Flag to indicate if addip is enabled. */
211 int addip_enable;
212 int addip_noauth_enable;
213
214 /* Flag to indicate if PR-SCTP is enabled. */
215 int prsctp_enable;
216
217 /* Flag to idicate if SCTP-AUTH is enabled */
218 int auth_enable;
219
220 /*
221 * Policy to control SCTP IPv4 address scoping
222 * 0 - Disable IPv4 address scoping
223 * 1 - Enable IPv4 address scoping
224 * 2 - Selectively allow only IPv4 private addresses
225 * 3 - Selectively allow only IPv4 link local address
226 */
227 int ipv4_scope_policy;
228
229 /* Flag to indicate whether computing and verifying checksum 145 /* Flag to indicate whether computing and verifying checksum
230 * is disabled. */ 146 * is disabled. */
231 bool checksum_disable; 147 bool checksum_disable;
232
233 /* Threshold for rwnd update SACKS. Receive buffer shifted this many
234 * bits is an indicator of when to send and window update SACK.
235 */
236 int rwnd_update_shift;
237
238 /* Threshold for autoclose timeout, in seconds. */
239 unsigned long max_autoclose;
240} sctp_globals; 148} sctp_globals;
241 149
242#define sctp_rto_initial (sctp_globals.rto_initial)
243#define sctp_rto_min (sctp_globals.rto_min)
244#define sctp_rto_max (sctp_globals.rto_max)
245#define sctp_rto_alpha (sctp_globals.rto_alpha)
246#define sctp_rto_beta (sctp_globals.rto_beta)
247#define sctp_max_burst (sctp_globals.max_burst)
248#define sctp_valid_cookie_life (sctp_globals.valid_cookie_life)
249#define sctp_cookie_preserve_enable (sctp_globals.cookie_preserve_enable)
250#define sctp_max_retrans_association (sctp_globals.max_retrans_association)
251#define sctp_sndbuf_policy (sctp_globals.sndbuf_policy)
252#define sctp_rcvbuf_policy (sctp_globals.rcvbuf_policy)
253#define sctp_max_retrans_path (sctp_globals.max_retrans_path)
254#define sctp_pf_retrans (sctp_globals.pf_retrans)
255#define sctp_max_retrans_init (sctp_globals.max_retrans_init)
256#define sctp_sack_timeout (sctp_globals.sack_timeout)
257#define sctp_hb_interval (sctp_globals.hb_interval)
258#define sctp_max_instreams (sctp_globals.max_instreams) 150#define sctp_max_instreams (sctp_globals.max_instreams)
259#define sctp_max_outstreams (sctp_globals.max_outstreams) 151#define sctp_max_outstreams (sctp_globals.max_outstreams)
260#define sctp_address_families (sctp_globals.address_families) 152#define sctp_address_families (sctp_globals.address_families)
@@ -264,15 +156,7 @@ extern struct sctp_globals {
264#define sctp_assoc_hashtable (sctp_globals.assoc_hashtable) 156#define sctp_assoc_hashtable (sctp_globals.assoc_hashtable)
265#define sctp_port_hashsize (sctp_globals.port_hashsize) 157#define sctp_port_hashsize (sctp_globals.port_hashsize)
266#define sctp_port_hashtable (sctp_globals.port_hashtable) 158#define sctp_port_hashtable (sctp_globals.port_hashtable)
267#define sctp_default_auto_asconf (sctp_globals.default_auto_asconf)
268#define sctp_scope_policy (sctp_globals.ipv4_scope_policy)
269#define sctp_addip_enable (sctp_globals.addip_enable)
270#define sctp_addip_noauth (sctp_globals.addip_noauth_enable)
271#define sctp_prsctp_enable (sctp_globals.prsctp_enable)
272#define sctp_auth_enable (sctp_globals.auth_enable)
273#define sctp_checksum_disable (sctp_globals.checksum_disable) 159#define sctp_checksum_disable (sctp_globals.checksum_disable)
274#define sctp_rwnd_upd_shift (sctp_globals.rwnd_update_shift)
275#define sctp_max_autoclose (sctp_globals.max_autoclose)
276 160
277/* SCTP Socket type: UDP or TCP style. */ 161/* SCTP Socket type: UDP or TCP style. */
278typedef enum { 162typedef enum {