webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
sctp_sysctl.h
Go to the documentation of this file.
1 /*-
2  * Copyright (c) 2007, by Cisco Systems, Inc. All rights reserved.
3  * Copyright (c) 2008-2012, by Randall Stewart. All rights reserved.
4  * Copyright (c) 2008-2012, by Michael Tuexen. All rights reserved.
5  *
6  * Redistribution and use in source and binary forms, with or without
7  * modification, are permitted provided that the following conditions are met:
8  *
9  * a) Redistributions of source code must retain the above copyright notice,
10  * this list of conditions and the following disclaimer.
11  *
12  * b) Redistributions in binary form must reproduce the above copyright
13  * notice, this list of conditions and the following disclaimer in
14  * the documentation and/or other materials provided with the distribution.
15  *
16  * c) Neither the name of Cisco Systems, Inc. nor the names of its
17  * contributors may be used to endorse or promote products derived
18  * from this software without specific prior written permission.
19  *
20  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
21  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
22  * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
23  * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
24  * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
25  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
26  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
27  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
28  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
29  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
30  * THE POSSIBILITY OF SUCH DAMAGE.
31  */
32 
33 #ifdef __FreeBSD__
34 #include <sys/cdefs.h>
35 __FBSDID("$FreeBSD: head/sys/netinet/sctp_sysctl.h 299543 2016-05-12 16:34:59Z tuexen $");
36 #endif
37 
38 #ifndef _NETINET_SCTP_SYSCTL_H_
39 #define _NETINET_SCTP_SYSCTL_H_
40 
41 #include <netinet/sctp_os.h>
42 #include <netinet/sctp_constants.h>
43 
44 struct sctp_sysctl {
57 #if !(defined(__FreeBSD__) && __FreeBSD_version >= 800000)
58 #if !defined(SCTP_WITH_NO_CSUM)
60 #endif
61 #endif
101  /* JRS - Variable for default congestion control module */
103  /* RS - Variable for default stream scheduling module */
115 #if defined(SCTP_LOCAL_TRACE_BUF)
116 #if defined(__Windows__)
117  struct sctp_log *sctp_log;
118 #else
119  struct sctp_log sctp_log;
120 #endif
121 #endif
128 #if defined(SCTP_DEBUG)
129  uint32_t sctp_debug_on;
130 #endif
131 #if defined(__APPLE__)
132  uint32_t sctp_ignore_vmware_interfaces;
133  uint32_t sctp_main_timer;
134  uint32_t sctp_addr_watchdog_limit;
135  uint32_t sctp_vtag_watchdog_limit;
136 #endif
137 #if defined(__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
138  uint32_t sctp_output_unlocked;
139 #endif
140 };
141 
142 /*
143  * limits for the sysctl variables
144  */
145 /* maxdgram: Maximum outgoing SCTP buffer size */
146 #define SCTPCTL_MAXDGRAM_DESC "Maximum outgoing SCTP buffer size"
147 #define SCTPCTL_MAXDGRAM_MIN 0
148 #define SCTPCTL_MAXDGRAM_MAX 0xFFFFFFFF
149 #if defined(__Userspace__)
150 #define SCTPCTL_MAXDGRAM_DEFAULT SB_MAX
151 #else
152 #define SCTPCTL_MAXDGRAM_DEFAULT 262144 /* 256k */
153 #endif
154 
155 /* recvspace: Maximum incoming SCTP buffer size */
156 #define SCTPCTL_RECVSPACE_DESC "Maximum incoming SCTP buffer size"
157 #define SCTPCTL_RECVSPACE_MIN 0
158 #define SCTPCTL_RECVSPACE_MAX 0xFFFFFFFF
159 #if defined(__Userspace__)
160 #define SCTPCTL_RECVSPACE_DEFAULT SB_RAW
161 #else
162 #define SCTPCTL_RECVSPACE_DEFAULT 262144 /* 256k */
163 #endif
164 
165 /* autoasconf: Enable SCTP Auto-ASCONF */
166 #define SCTPCTL_AUTOASCONF_DESC "Enable SCTP Auto-ASCONF"
167 #define SCTPCTL_AUTOASCONF_MIN 0
168 #define SCTPCTL_AUTOASCONF_MAX 1
169 #define SCTPCTL_AUTOASCONF_DEFAULT 1
170 
171 /* autoasconf: Enable SCTP Auto-ASCONF */
172 #define SCTPCTL_MULTIPLEASCONFS_DESC "Enable SCTP Muliple-ASCONFs"
173 #define SCTPCTL_MULTIPLEASCONFS_MIN 0
174 #define SCTPCTL_MULTIPLEASCONFS_MAX 1
175 #define SCTPCTL_MULTIPLEASCONFS_DEFAULT SCTP_DEFAULT_MULTIPLE_ASCONFS
176 
177 /* ecn_enable: Enable SCTP ECN */
178 #define SCTPCTL_ECN_ENABLE_DESC "Enable SCTP ECN"
179 #define SCTPCTL_ECN_ENABLE_MIN 0
180 #define SCTPCTL_ECN_ENABLE_MAX 1
181 #define SCTPCTL_ECN_ENABLE_DEFAULT 1
182 
183 /* pr_enable: Enable PR-SCTP */
184 #define SCTPCTL_PR_ENABLE_DESC "Enable PR-SCTP"
185 #define SCTPCTL_PR_ENABLE_MIN 0
186 #define SCTPCTL_PR_ENABLE_MAX 1
187 #define SCTPCTL_PR_ENABLE_DEFAULT 1
188 
189 /* auth_enable: Enable SCTP AUTH function */
190 #define SCTPCTL_AUTH_ENABLE_DESC "Enable SCTP AUTH function"
191 #define SCTPCTL_AUTH_ENABLE_MIN 0
192 #define SCTPCTL_AUTH_ENABLE_MAX 1
193 #define SCTPCTL_AUTH_ENABLE_DEFAULT 1
194 
195 /* asconf_enable: Enable SCTP ASCONF */
196 #define SCTPCTL_ASCONF_ENABLE_DESC "Enable SCTP ASCONF"
197 #define SCTPCTL_ASCONF_ENABLE_MIN 0
198 #define SCTPCTL_ASCONF_ENABLE_MAX 1
199 #define SCTPCTL_ASCONF_ENABLE_DEFAULT 1
200 
201 /* reconfig_enable: Enable SCTP RE-CONFIG */
202 #define SCTPCTL_RECONFIG_ENABLE_DESC "Enable SCTP RE-CONFIG"
203 #define SCTPCTL_RECONFIG_ENABLE_MIN 0
204 #define SCTPCTL_RECONFIG_ENABLE_MAX 1
205 #define SCTPCTL_RECONFIG_ENABLE_DEFAULT 1
206 
207 /* nrsack_enable: Enable NR_SACK */
208 #define SCTPCTL_NRSACK_ENABLE_DESC "Enable SCTP NR-SACK"
209 #define SCTPCTL_NRSACK_ENABLE_MIN 0
210 #define SCTPCTL_NRSACK_ENABLE_MAX 1
211 #define SCTPCTL_NRSACK_ENABLE_DEFAULT 0
212 
213 /* pktdrop_enable: Enable SCTP Packet Drop Reports */
214 #define SCTPCTL_PKTDROP_ENABLE_DESC "Enable SCTP PKTDROP"
215 #define SCTPCTL_PKTDROP_ENABLE_MIN 0
216 #define SCTPCTL_PKTDROP_ENABLE_MAX 1
217 #define SCTPCTL_PKTDROP_ENABLE_DEFAULT 0
218 
219 /* loopback_nocsum: Enable NO Csum on packets sent on loopback */
220 #define SCTPCTL_LOOPBACK_NOCSUM_DESC "Enable NO Csum on packets sent on loopback"
221 #define SCTPCTL_LOOPBACK_NOCSUM_MIN 0
222 #define SCTPCTL_LOOPBACK_NOCSUM_MAX 1
223 #define SCTPCTL_LOOPBACK_NOCSUM_DEFAULT 1
224 
225 /* peer_chkoh: Amount to debit peers rwnd per chunk sent */
226 #define SCTPCTL_PEER_CHKOH_DESC "Amount to debit peers rwnd per chunk sent"
227 #define SCTPCTL_PEER_CHKOH_MIN 0
228 #define SCTPCTL_PEER_CHKOH_MAX 0xFFFFFFFF
229 #define SCTPCTL_PEER_CHKOH_DEFAULT 256
230 
231 /* maxburst: Default max burst for sctp endpoints */
232 #define SCTPCTL_MAXBURST_DESC "Default max burst for sctp endpoints"
233 #define SCTPCTL_MAXBURST_MIN 0
234 #define SCTPCTL_MAXBURST_MAX 0xFFFFFFFF
235 #define SCTPCTL_MAXBURST_DEFAULT SCTP_DEF_MAX_BURST
236 
237 /* fr_maxburst: Default max burst for sctp endpoints when fast retransmitting */
238 #define SCTPCTL_FRMAXBURST_DESC "Default fr max burst for sctp endpoints"
239 #define SCTPCTL_FRMAXBURST_MIN 0
240 #define SCTPCTL_FRMAXBURST_MAX 0xFFFFFFFF
241 #define SCTPCTL_FRMAXBURST_DEFAULT SCTP_DEF_FRMAX_BURST
242 
243 
244 /* maxchunks: Default max chunks on queue per asoc */
245 #define SCTPCTL_MAXCHUNKS_DESC "Default max chunks on queue per asoc"
246 #define SCTPCTL_MAXCHUNKS_MIN 0
247 #define SCTPCTL_MAXCHUNKS_MAX 0xFFFFFFFF
248 #define SCTPCTL_MAXCHUNKS_DEFAULT SCTP_ASOC_MAX_CHUNKS_ON_QUEUE
249 
250 /* tcbhashsize: Tunable for Hash table sizes */
251 #define SCTPCTL_TCBHASHSIZE_DESC "Tunable for TCB hash table sizes"
252 #define SCTPCTL_TCBHASHSIZE_MIN 1
253 #define SCTPCTL_TCBHASHSIZE_MAX 0xFFFFFFFF
254 #define SCTPCTL_TCBHASHSIZE_DEFAULT SCTP_TCBHASHSIZE
255 
256 /* pcbhashsize: Tunable for PCB Hash table sizes */
257 #define SCTPCTL_PCBHASHSIZE_DESC "Tunable for PCB hash table sizes"
258 #define SCTPCTL_PCBHASHSIZE_MIN 1
259 #define SCTPCTL_PCBHASHSIZE_MAX 0xFFFFFFFF
260 #define SCTPCTL_PCBHASHSIZE_DEFAULT SCTP_PCBHASHSIZE
261 
262 /* min_split_point: Minimum size when splitting a chunk */
263 #define SCTPCTL_MIN_SPLIT_POINT_DESC "Minimum size when splitting a chunk"
264 #define SCTPCTL_MIN_SPLIT_POINT_MIN 0
265 #define SCTPCTL_MIN_SPLIT_POINT_MAX 0xFFFFFFFF
266 #define SCTPCTL_MIN_SPLIT_POINT_DEFAULT SCTP_DEFAULT_SPLIT_POINT_MIN
267 
268 /* chunkscale: Tunable for Scaling of number of chunks and messages */
269 #define SCTPCTL_CHUNKSCALE_DESC "Tunable for Scaling of number of chunks and messages"
270 #define SCTPCTL_CHUNKSCALE_MIN 1
271 #define SCTPCTL_CHUNKSCALE_MAX 0xFFFFFFFF
272 #define SCTPCTL_CHUNKSCALE_DEFAULT SCTP_CHUNKQUEUE_SCALE
273 
274 /* delayed_sack_time: Default delayed SACK timer in ms */
275 #define SCTPCTL_DELAYED_SACK_TIME_DESC "Default delayed SACK timer in ms"
276 #define SCTPCTL_DELAYED_SACK_TIME_MIN 0
277 #define SCTPCTL_DELAYED_SACK_TIME_MAX 0xFFFFFFFF
278 #define SCTPCTL_DELAYED_SACK_TIME_DEFAULT SCTP_RECV_MSEC
279 
280 /* sack_freq: Default SACK frequency */
281 #define SCTPCTL_SACK_FREQ_DESC "Default SACK frequency"
282 #define SCTPCTL_SACK_FREQ_MIN 0
283 #define SCTPCTL_SACK_FREQ_MAX 0xFFFFFFFF
284 #define SCTPCTL_SACK_FREQ_DEFAULT SCTP_DEFAULT_SACK_FREQ
285 
286 /* sys_resource: Max number of cached resources in the system */
287 #define SCTPCTL_SYS_RESOURCE_DESC "Max number of cached resources in the system"
288 #define SCTPCTL_SYS_RESOURCE_MIN 0
289 #define SCTPCTL_SYS_RESOURCE_MAX 0xFFFFFFFF
290 #define SCTPCTL_SYS_RESOURCE_DEFAULT SCTP_DEF_SYSTEM_RESC_LIMIT
291 
292 /* asoc_resource: Max number of cached resources in an asoc */
293 #define SCTPCTL_ASOC_RESOURCE_DESC "Max number of cached resources in an asoc"
294 #define SCTPCTL_ASOC_RESOURCE_MIN 0
295 #define SCTPCTL_ASOC_RESOURCE_MAX 0xFFFFFFFF
296 #define SCTPCTL_ASOC_RESOURCE_DEFAULT SCTP_DEF_ASOC_RESC_LIMIT
297 
298 /* heartbeat_interval: Default heartbeat interval in ms */
299 #define SCTPCTL_HEARTBEAT_INTERVAL_DESC "Default heartbeat interval in ms"
300 #define SCTPCTL_HEARTBEAT_INTERVAL_MIN 0
301 #define SCTPCTL_HEARTBEAT_INTERVAL_MAX 0xFFFFFFFF
302 #define SCTPCTL_HEARTBEAT_INTERVAL_DEFAULT SCTP_HB_DEFAULT_MSEC
303 
304 /* pmtu_raise_time: Default PMTU raise timer in seconds */
305 #define SCTPCTL_PMTU_RAISE_TIME_DESC "Default PMTU raise timer in seconds"
306 #define SCTPCTL_PMTU_RAISE_TIME_MIN 0
307 #define SCTPCTL_PMTU_RAISE_TIME_MAX 0xFFFFFFFF
308 #define SCTPCTL_PMTU_RAISE_TIME_DEFAULT SCTP_DEF_PMTU_RAISE_SEC
309 
310 /* shutdown_guard_time: Default shutdown guard timer in seconds */
311 #define SCTPCTL_SHUTDOWN_GUARD_TIME_DESC "Shutdown guard timer in seconds (0 means 5 times RTO.Max)"
312 #define SCTPCTL_SHUTDOWN_GUARD_TIME_MIN 0
313 #define SCTPCTL_SHUTDOWN_GUARD_TIME_MAX 0xFFFFFFFF
314 #define SCTPCTL_SHUTDOWN_GUARD_TIME_DEFAULT 0
315 
316 /* secret_lifetime: Default secret lifetime in seconds */
317 #define SCTPCTL_SECRET_LIFETIME_DESC "Default secret lifetime in seconds"
318 #define SCTPCTL_SECRET_LIFETIME_MIN 0
319 #define SCTPCTL_SECRET_LIFETIME_MAX 0xFFFFFFFF
320 #define SCTPCTL_SECRET_LIFETIME_DEFAULT SCTP_DEFAULT_SECRET_LIFE_SEC
321 
322 /* rto_max: Default maximum retransmission timeout in ms */
323 #define SCTPCTL_RTO_MAX_DESC "Default maximum retransmission timeout in ms"
324 #define SCTPCTL_RTO_MAX_MIN 0
325 #define SCTPCTL_RTO_MAX_MAX 0xFFFFFFFF
326 #define SCTPCTL_RTO_MAX_DEFAULT SCTP_RTO_UPPER_BOUND
327 
328 /* rto_min: Default minimum retransmission timeout in ms */
329 #define SCTPCTL_RTO_MIN_DESC "Default minimum retransmission timeout in ms"
330 #define SCTPCTL_RTO_MIN_MIN 0
331 #define SCTPCTL_RTO_MIN_MAX 0xFFFFFFFF
332 #define SCTPCTL_RTO_MIN_DEFAULT SCTP_RTO_LOWER_BOUND
333 
334 /* rto_initial: Default initial retransmission timeout in ms */
335 #define SCTPCTL_RTO_INITIAL_DESC "Default initial retransmission timeout in ms"
336 #define SCTPCTL_RTO_INITIAL_MIN 0
337 #define SCTPCTL_RTO_INITIAL_MAX 0xFFFFFFFF
338 #define SCTPCTL_RTO_INITIAL_DEFAULT SCTP_RTO_INITIAL
339 
340 /* init_rto_max: Default maximum retransmission timeout during association setup in ms */
341 #define SCTPCTL_INIT_RTO_MAX_DESC "Default maximum retransmission timeout during association setup in ms"
342 #define SCTPCTL_INIT_RTO_MAX_MIN 0
343 #define SCTPCTL_INIT_RTO_MAX_MAX 0xFFFFFFFF
344 #define SCTPCTL_INIT_RTO_MAX_DEFAULT SCTP_RTO_UPPER_BOUND
345 
346 /* valid_cookie_life: Default cookie lifetime in sec */
347 #define SCTPCTL_VALID_COOKIE_LIFE_DESC "Default cookie lifetime in seconds"
348 #define SCTPCTL_VALID_COOKIE_LIFE_MIN 0
349 #define SCTPCTL_VALID_COOKIE_LIFE_MAX 0xFFFFFFFF
350 #define SCTPCTL_VALID_COOKIE_LIFE_DEFAULT SCTP_DEFAULT_COOKIE_LIFE
351 
352 /* init_rtx_max: Default maximum number of retransmission for INIT chunks */
353 #define SCTPCTL_INIT_RTX_MAX_DESC "Default maximum number of retransmission for INIT chunks"
354 #define SCTPCTL_INIT_RTX_MAX_MIN 0
355 #define SCTPCTL_INIT_RTX_MAX_MAX 0xFFFFFFFF
356 #define SCTPCTL_INIT_RTX_MAX_DEFAULT SCTP_DEF_MAX_INIT
357 
358 /* assoc_rtx_max: Default maximum number of retransmissions per association */
359 #define SCTPCTL_ASSOC_RTX_MAX_DESC "Default maximum number of retransmissions per association"
360 #define SCTPCTL_ASSOC_RTX_MAX_MIN 0
361 #define SCTPCTL_ASSOC_RTX_MAX_MAX 0xFFFFFFFF
362 #define SCTPCTL_ASSOC_RTX_MAX_DEFAULT SCTP_DEF_MAX_SEND
363 
364 /* path_rtx_max: Default maximum of retransmissions per path */
365 #define SCTPCTL_PATH_RTX_MAX_DESC "Default maximum of retransmissions per path"
366 #define SCTPCTL_PATH_RTX_MAX_MIN 0
367 #define SCTPCTL_PATH_RTX_MAX_MAX 0xFFFFFFFF
368 #define SCTPCTL_PATH_RTX_MAX_DEFAULT SCTP_DEF_MAX_PATH_RTX
369 
370 /* path_pf_threshold: threshold for considering the path potentially failed */
371 #define SCTPCTL_PATH_PF_THRESHOLD_DESC "Default potentially failed threshold"
372 #define SCTPCTL_PATH_PF_THRESHOLD_MIN 0
373 #define SCTPCTL_PATH_PF_THRESHOLD_MAX 0xFFFF
374 #define SCTPCTL_PATH_PF_THRESHOLD_DEFAULT SCTPCTL_PATH_PF_THRESHOLD_MAX
375 
376 /* add_more_on_output: When space-wise is it worthwhile to try to add more to a socket send buffer */
377 #define SCTPCTL_ADD_MORE_ON_OUTPUT_DESC "When space-wise is it worthwhile to try to add more to a socket send buffer"
378 #define SCTPCTL_ADD_MORE_ON_OUTPUT_MIN 0
379 #define SCTPCTL_ADD_MORE_ON_OUTPUT_MAX 0xFFFFFFFF
380 #define SCTPCTL_ADD_MORE_ON_OUTPUT_DEFAULT SCTP_DEFAULT_ADD_MORE
381 
382 /* incoming_streams: Default number of incoming streams */
383 #define SCTPCTL_INCOMING_STREAMS_DESC "Default number of incoming streams"
384 #define SCTPCTL_INCOMING_STREAMS_MIN 1
385 #define SCTPCTL_INCOMING_STREAMS_MAX 65535
386 #define SCTPCTL_INCOMING_STREAMS_DEFAULT SCTP_ISTREAM_INITIAL
387 
388 /* outgoing_streams: Default number of outgoing streams */
389 #define SCTPCTL_OUTGOING_STREAMS_DESC "Default number of outgoing streams"
390 #define SCTPCTL_OUTGOING_STREAMS_MIN 1
391 #define SCTPCTL_OUTGOING_STREAMS_MAX 65535
392 #define SCTPCTL_OUTGOING_STREAMS_DEFAULT SCTP_OSTREAM_INITIAL
393 
394 /* cmt_on_off: CMT on/off flag */
395 #define SCTPCTL_CMT_ON_OFF_DESC "CMT settings"
396 #define SCTPCTL_CMT_ON_OFF_MIN SCTP_CMT_OFF
397 #define SCTPCTL_CMT_ON_OFF_MAX SCTP_CMT_MAX
398 #define SCTPCTL_CMT_ON_OFF_DEFAULT SCTP_CMT_OFF
399 
400 /* cmt_use_dac: CMT DAC on/off flag */
401 #define SCTPCTL_CMT_USE_DAC_DESC "CMT DAC on/off flag"
402 #define SCTPCTL_CMT_USE_DAC_MIN 0
403 #define SCTPCTL_CMT_USE_DAC_MAX 1
404 #define SCTPCTL_CMT_USE_DAC_DEFAULT 0
405 
406 /* cwnd_maxburst: Use a CWND adjusting maxburst */
407 #define SCTPCTL_CWND_MAXBURST_DESC "Use a CWND adjusting maxburst"
408 #define SCTPCTL_CWND_MAXBURST_MIN 0
409 #define SCTPCTL_CWND_MAXBURST_MAX 1
410 #define SCTPCTL_CWND_MAXBURST_DEFAULT 1
411 
412 /* nat_friendly: SCTP NAT friendly operation */
413 #define SCTPCTL_NAT_FRIENDLY_DESC "SCTP NAT friendly operation"
414 #define SCTPCTL_NAT_FRIENDLY_MIN 0
415 #define SCTPCTL_NAT_FRIENDLY_MAX 1
416 #define SCTPCTL_NAT_FRIENDLY_DEFAULT 1
417 
418 /* abc_l_var: SCTP ABC max increase per SACK (L) */
419 #define SCTPCTL_ABC_L_VAR_DESC "SCTP ABC max increase per SACK (L)"
420 #define SCTPCTL_ABC_L_VAR_MIN 0
421 #define SCTPCTL_ABC_L_VAR_MAX 0xFFFFFFFF
422 #define SCTPCTL_ABC_L_VAR_DEFAULT 2
423 
424 /* max_chained_mbufs: Default max number of small mbufs on a chain */
425 #define SCTPCTL_MAX_CHAINED_MBUFS_DESC "Default max number of small mbufs on a chain"
426 #define SCTPCTL_MAX_CHAINED_MBUFS_MIN 0
427 #define SCTPCTL_MAX_CHAINED_MBUFS_MAX 0xFFFFFFFF
428 #define SCTPCTL_MAX_CHAINED_MBUFS_DEFAULT SCTP_DEFAULT_MBUFS_IN_CHAIN
429 
430 /* do_sctp_drain: Should SCTP respond to the drain calls */
431 #define SCTPCTL_DO_SCTP_DRAIN_DESC "Should SCTP respond to the drain calls"
432 #define SCTPCTL_DO_SCTP_DRAIN_MIN 0
433 #define SCTPCTL_DO_SCTP_DRAIN_MAX 1
434 #define SCTPCTL_DO_SCTP_DRAIN_DEFAULT 1
435 
436 /* hb_max_burst: Confirmation Heartbeat max burst? */
437 #define SCTPCTL_HB_MAX_BURST_DESC "Confirmation Heartbeat max burst"
438 #define SCTPCTL_HB_MAX_BURST_MIN 1
439 #define SCTPCTL_HB_MAX_BURST_MAX 0xFFFFFFFF
440 #define SCTPCTL_HB_MAX_BURST_DEFAULT SCTP_DEF_HBMAX_BURST
441 
442 /* abort_at_limit: When one-2-one hits qlimit abort */
443 #define SCTPCTL_ABORT_AT_LIMIT_DESC "When one-2-one hits qlimit abort"
444 #define SCTPCTL_ABORT_AT_LIMIT_MIN 0
445 #define SCTPCTL_ABORT_AT_LIMIT_MAX 1
446 #define SCTPCTL_ABORT_AT_LIMIT_DEFAULT 0
447 
448 /* min_residual: min residual in a data fragment leftover */
449 #define SCTPCTL_MIN_RESIDUAL_DESC "Minimum residual data chunk in second part of split"
450 #define SCTPCTL_MIN_RESIDUAL_MIN 20
451 #define SCTPCTL_MIN_RESIDUAL_MAX 65535
452 #define SCTPCTL_MIN_RESIDUAL_DEFAULT 1452
453 
454 /* max_retran_chunk: max chunk retransmissions */
455 #define SCTPCTL_MAX_RETRAN_CHUNK_DESC "Maximum times an unlucky chunk can be retran'd before assoc abort"
456 #define SCTPCTL_MAX_RETRAN_CHUNK_MIN 0
457 #define SCTPCTL_MAX_RETRAN_CHUNK_MAX 65535
458 #define SCTPCTL_MAX_RETRAN_CHUNK_DEFAULT 30
459 
460 /* sctp_logging: This gives us logging when the options are enabled */
461 #define SCTPCTL_LOGGING_LEVEL_DESC "Ltrace/KTR trace logging level"
462 #define SCTPCTL_LOGGING_LEVEL_MIN 0
463 #define SCTPCTL_LOGGING_LEVEL_MAX 0xffffffff
464 #define SCTPCTL_LOGGING_LEVEL_DEFAULT 0
465 
466 /* JRS - default congestion control module sysctl */
467 #define SCTPCTL_DEFAULT_CC_MODULE_DESC "Default congestion control module"
468 #define SCTPCTL_DEFAULT_CC_MODULE_MIN 0
469 #define SCTPCTL_DEFAULT_CC_MODULE_MAX 2
470 #define SCTPCTL_DEFAULT_CC_MODULE_DEFAULT 0
471 
472 /* RS - default stream scheduling module sysctl */
473 #define SCTPCTL_DEFAULT_SS_MODULE_DESC "Default stream scheduling module"
474 #define SCTPCTL_DEFAULT_SS_MODULE_MIN 0
475 #define SCTPCTL_DEFAULT_SS_MODULE_MAX 5
476 #define SCTPCTL_DEFAULT_SS_MODULE_DEFAULT 0
477 
478 /* RRS - default fragment interleave */
479 #define SCTPCTL_DEFAULT_FRAG_INTERLEAVE_DESC "Default fragment interleave level"
480 #define SCTPCTL_DEFAULT_FRAG_INTERLEAVE_MIN 0
481 #define SCTPCTL_DEFAULT_FRAG_INTERLEAVE_MAX 2
482 #define SCTPCTL_DEFAULT_FRAG_INTERLEAVE_DEFAULT 1
483 
484 /* mobility_base: Enable SCTP mobility support */
485 #define SCTPCTL_MOBILITY_BASE_DESC "Enable SCTP base mobility"
486 #define SCTPCTL_MOBILITY_BASE_MIN 0
487 #define SCTPCTL_MOBILITY_BASE_MAX 1
488 #define SCTPCTL_MOBILITY_BASE_DEFAULT 0
489 
490 /* mobility_fasthandoff: Enable SCTP fast handoff support */
491 #define SCTPCTL_MOBILITY_FASTHANDOFF_DESC "Enable SCTP fast handoff"
492 #define SCTPCTL_MOBILITY_FASTHANDOFF_MIN 0
493 #define SCTPCTL_MOBILITY_FASTHANDOFF_MAX 1
494 #define SCTPCTL_MOBILITY_FASTHANDOFF_DEFAULT 0
495 
496 /* Enable SCTP/UDP tunneling port */
497 #define SCTPCTL_UDP_TUNNELING_PORT_DESC "Set the SCTP/UDP tunneling port"
498 #define SCTPCTL_UDP_TUNNELING_PORT_MIN 0
499 #define SCTPCTL_UDP_TUNNELING_PORT_MAX 65535
500 #if defined(__FreeBSD__)
501 #define SCTPCTL_UDP_TUNNELING_PORT_DEFAULT 0
502 #else
503 #define SCTPCTL_UDP_TUNNELING_PORT_DEFAULT SCTP_OVER_UDP_TUNNELING_PORT
504 #endif
505 
506 /* Enable sending of the SACK-IMMEDIATELY bit */
507 #define SCTPCTL_SACK_IMMEDIATELY_ENABLE_DESC "Enable sending of the SACK-IMMEDIATELY-bit."
508 #define SCTPCTL_SACK_IMMEDIATELY_ENABLE_MIN 0
509 #define SCTPCTL_SACK_IMMEDIATELY_ENABLE_MAX 1
510 #define SCTPCTL_SACK_IMMEDIATELY_ENABLE_DEFAULT SCTPCTL_SACK_IMMEDIATELY_ENABLE_MAX
511 
512 /* Enable sending of the NAT-FRIENDLY message */
513 #define SCTPCTL_NAT_FRIENDLY_INITS_DESC "Enable sending of the nat-friendly SCTP option on INITs."
514 #define SCTPCTL_NAT_FRIENDLY_INITS_MIN 0
515 #define SCTPCTL_NAT_FRIENDLY_INITS_MAX 1
516 #define SCTPCTL_NAT_FRIENDLY_INITS_DEFAULT SCTPCTL_NAT_FRIENDLY_INITS_MIN
517 
518 /* Vtag time wait in seconds */
519 #define SCTPCTL_TIME_WAIT_DESC "Vtag time wait time in seconds, 0 disables it."
520 #define SCTPCTL_TIME_WAIT_MIN 0
521 #define SCTPCTL_TIME_WAIT_MAX 0xffffffff
522 #define SCTPCTL_TIME_WAIT_DEFAULT SCTP_TIME_WAIT
523 
524 /* Enable Send/Receive buffer splitting */
525 #define SCTPCTL_BUFFER_SPLITTING_DESC "Enable send/receive buffer splitting."
526 #define SCTPCTL_BUFFER_SPLITTING_MIN 0
527 #define SCTPCTL_BUFFER_SPLITTING_MAX 0x3
528 #define SCTPCTL_BUFFER_SPLITTING_DEFAULT SCTPCTL_BUFFER_SPLITTING_MIN
529 
530 /* Initial congestion window in MTU */
531 #define SCTPCTL_INITIAL_CWND_DESC "Initial congestion window in MTUs"
532 #define SCTPCTL_INITIAL_CWND_MIN 0
533 #define SCTPCTL_INITIAL_CWND_MAX 0xffffffff
534 #define SCTPCTL_INITIAL_CWND_DEFAULT 3
535 
536 /* rttvar smooth avg for bw calc */
537 #define SCTPCTL_RTTVAR_BW_DESC "Shift amount for bw smoothing on rtt calc"
538 #define SCTPCTL_RTTVAR_BW_MIN 0
539 #define SCTPCTL_RTTVAR_BW_MAX 32
540 #define SCTPCTL_RTTVAR_BW_DEFAULT 4
541 
542 /* rttvar smooth avg for bw calc */
543 #define SCTPCTL_RTTVAR_RTT_DESC "Shift amount for rtt smoothing on rtt calc"
544 #define SCTPCTL_RTTVAR_RTT_MIN 0
545 #define SCTPCTL_RTTVAR_RTT_MAX 32
546 #define SCTPCTL_RTTVAR_RTT_DEFAULT 5
547 
548 #define SCTPCTL_RTTVAR_EQRET_DESC "What to return when rtt and bw are unchanged"
549 #define SCTPCTL_RTTVAR_EQRET_MIN 0
550 #define SCTPCTL_RTTVAR_EQRET_MAX 1
551 #define SCTPCTL_RTTVAR_EQRET_DEFAULT 0
552 
553 #define SCTPCTL_RTTVAR_STEADYS_DESC "How many the sames it takes to try step down of cwnd"
554 #define SCTPCTL_RTTVAR_STEADYS_MIN 0
555 #define SCTPCTL_RTTVAR_STEADYS_MAX 0xFFFF
556 #define SCTPCTL_RTTVAR_STEADYS_DEFAULT 20 /* 0 means disable feature */
557 
558 #define SCTPCTL_RTTVAR_DCCCECN_DESC "Enable for RTCC CC datacenter ECN"
559 #define SCTPCTL_RTTVAR_DCCCECN_MIN 0
560 #define SCTPCTL_RTTVAR_DCCCECN_MAX 1
561 #define SCTPCTL_RTTVAR_DCCCECN_DEFAULT 1 /* 0 means disable feature */
562 
563 #define SCTPCTL_BLACKHOLE_DESC "Enable SCTP blackholing. See blackhole(4) for more details."
564 #define SCTPCTL_BLACKHOLE_MIN 0
565 #define SCTPCTL_BLACKHOLE_MAX 2
566 #define SCTPCTL_BLACKHOLE_DEFAULT SCTPCTL_BLACKHOLE_MIN
567 
568 #define SCTPCTL_DIAG_INFO_CODE_DESC "Diagnostic information error cause code"
569 #define SCTPCTL_DIAG_INFO_CODE_MIN 0
570 #define SCTPCTL_DIAG_INFO_CODE_MAX 65535
571 #define SCTPCTL_DIAG_INFO_CODE_DEFAULT 0
572 
573 #if defined(SCTP_DEBUG)
574 /* debug: Configure debug output */
575 #define SCTPCTL_DEBUG_DESC "Configure debug output"
576 #define SCTPCTL_DEBUG_MIN 0
577 #define SCTPCTL_DEBUG_MAX 0xFFFFFFFF
578 #define SCTPCTL_DEBUG_DEFAULT 0
579 #endif
580 
581 #if defined(__APPLE__)
582 #define SCTPCTL_MAIN_TIMER_DESC "Main timer interval in ms"
583 #define SCTPCTL_MAIN_TIMER_MIN 1
584 #define SCTPCTL_MAIN_TIMER_MAX 0xFFFFFFFF
585 #define SCTPCTL_MAIN_TIMER_DEFAULT 10
586 
587 #define SCTPCTL_IGNORE_VMWARE_INTERFACES_DESC "Ignore VMware Interfaces"
588 #define SCTPCTL_IGNORE_VMWARE_INTERFACES_MIN 0
589 #define SCTPCTL_IGNORE_VMWARE_INTERFACES_MAX 1
590 #define SCTPCTL_IGNORE_VMWARE_INTERFACES_DEFAULT SCTPCTL_IGNORE_VMWARE_INTERFACES_MAX
591 #endif
592 
593 #if defined(__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
594 #define SCTPCTL_OUTPUT_UNLOCKED_DESC "Unlock socket when sending packets down to IP."
595 #define SCTPCTL_OUTPUT_UNLOCKED_MIN 0
596 #define SCTPCTL_OUTPUT_UNLOCKED_MAX 1
597 #define SCTPCTL_OUTPUT_UNLOCKED_DEFAULT SCTPCTL_OUTPUT_UNLOCKED_MIN
598 #endif
599 
600 #if defined(__APPLE__)
601 #define SCTPCTL_ADDR_WATCHDOG_LIMIT_DESC "Address watchdog limit"
602 #define SCTPCTL_ADDR_WATCHDOG_LIMIT_MIN 0
603 #define SCTPCTL_ADDR_WATCHDOG_LIMIT_MAX 0xFFFFFFFF
604 #define SCTPCTL_ADDR_WATCHDOG_LIMIT_DEFAULT SCTPCTL_ADDR_WATCHDOG_LIMIT_MIN
605 
606 #define SCTPCTL_VTAG_WATCHDOG_LIMIT_DESC "VTag watchdog limit"
607 #define SCTPCTL_VTAG_WATCHDOG_LIMIT_MIN 0
608 #define SCTPCTL_VTAG_WATCHDOG_LIMIT_MAX 0xFFFFFFFF
609 #define SCTPCTL_VTAG_WATCHDOG_LIMIT_DEFAULT SCTPCTL_VTAG_WATCHDOG_LIMIT_MIN
610 #endif
611 
612 #if defined(_KERNEL) || defined(__Userspace__)
613 #if defined(__FreeBSD__) || defined(__APPLE__) || defined(__Userspace__)
614 #if defined(SYSCTL_DECL)
615 SYSCTL_DECL(_net_inet_sctp);
616 #endif
617 #endif
618 
619 void sctp_init_sysctls(void);
620 #if defined(__Windows__)
621 void sctp_finish_sysctls(void);
622 #endif
623 
624 #endif /* _KERNEL */
625 #endif /* __sctp_sysctl_h__ */
uint32_t sctp_steady_step
Definition: sctp_sysctl.h:112
uint32_t sctp_heartbeat_interval_default
Definition: sctp_sysctl.h:73
uint32_t sctp_inits_include_nat_friendly
Definition: sctp_sysctl.h:108
uint32_t sctp_init_rtx_max_default
Definition: sctp_sysctl.h:82
uint32_t sctp_recvspace
Definition: sctp_sysctl.h:46
uint32_t sctp_rto_initial_default
Definition: sctp_sysctl.h:79
uint32_t sctp_shutdown_guard_time_default
Definition: sctp_sysctl.h:75
uint32_t sctp_nr_outgoing_streams_default
Definition: sctp_sysctl.h:88
uint32_t sctp_no_csum_on_loopback
Definition: sctp_sysctl.h:59
uint32_t sctp_sendspace
Definition: sctp_sysctl.h:45
uint32_t sctp_pcbtblsize
Definition: sctp_sysctl.h:66
unsigned int uint32_t
Definition: ptypes.h:105
uint32_t sctp_rttvar_eqret
Definition: sctp_sysctl.h:111
uint32_t sctp_hashtblsize
Definition: sctp_sysctl.h:65
void sctp_init_sysctls()
Definition: sctp_sysctl.c:62
uint32_t sctp_blackhole
Definition: sctp_sysctl.h:127
uint32_t sctp_initial_cwnd
Definition: sctp_sysctl.h:126
uint32_t sctp_max_burst_default
Definition: sctp_sysctl.h:63
uint32_t sctp_L2_abc_variable
Definition: sctp_sysctl.h:93
uint32_t sctp_secret_lifetime_default
Definition: sctp_sysctl.h:76
uint32_t sctp_rttvar_bw
Definition: sctp_sysctl.h:109
uint32_t sctp_nrsack_enable
Definition: sctp_sysctl.h:54
uint32_t sctp_path_rtx_max_default
Definition: sctp_sysctl.h:84
uint32_t sctp_rto_min_default
Definition: sctp_sysctl.h:78
uint32_t sctp_pr_enable
Definition: sctp_sysctl.h:50
uint32_t sctp_abort_if_one_2_one_hits_limit
Definition: sctp_sysctl.h:97
uint32_t sctp_default_ss_module
Definition: sctp_sysctl.h:104
uint32_t sctp_cmt_on_off
Definition: sctp_sysctl.h:89
uint32_t sctp_path_pf_threshold
Definition: sctp_sysctl.h:85
uint32_t sctp_chunkscale
Definition: sctp_sysctl.h:68
uint32_t sctp_nr_incoming_streams_default
Definition: sctp_sysctl.h:87
uint32_t sctp_auto_asconf
Definition: sctp_sysctl.h:47
uint32_t sctp_cmt_use_dac
Definition: sctp_sysctl.h:90
uint32_t sctp_sack_freq_default
Definition: sctp_sysctl.h:70
Definition: sctp_uio.h:1329
uint32_t sctp_mobility_base
Definition: sctp_sysctl.h:106
uint32_t sctp_ecn_enable
Definition: sctp_sysctl.h:49
uint32_t sctp_hb_maxburst
Definition: sctp_sysctl.h:96
uint32_t sctp_system_free_resc_limit
Definition: sctp_sysctl.h:71
uint32_t sctp_valid_cookie_life_default
Definition: sctp_sysctl.h:81
uint32_t sctp_use_dccc_ecn
Definition: sctp_sysctl.h:113
uint32_t sctp_nat_friendly
Definition: sctp_sysctl.h:92
uint32_t sctp_use_cwnd_based_maxburst
Definition: sctp_sysctl.h:91
uint32_t sctp_max_retran_chunk
Definition: sctp_sysctl.h:99
uint32_t sctp_pktdrop_enable
Definition: sctp_sysctl.h:55
uint32_t sctp_delayed_sack_time_default
Definition: sctp_sysctl.h:69
uint32_t sctp_reconfig_enable
Definition: sctp_sysctl.h:53
uint32_t sctp_default_frag_interleave
Definition: sctp_sysctl.h:105
uint32_t sctp_mobility_fasthandoff
Definition: sctp_sysctl.h:107
uint32_t sctp_rto_max_default
Definition: sctp_sysctl.h:77
uint32_t sctp_max_chunks_on_queue
Definition: sctp_sysctl.h:64
Definition: sctp_sysctl.h:44
uint32_t sctp_asconf_enable
Definition: sctp_sysctl.h:52
uint32_t sctp_peer_chunk_oh
Definition: sctp_sysctl.h:62
uint32_t sctp_fr_max_burst_default
Definition: sctp_sysctl.h:56
uint32_t sctp_vtag_time_wait
Definition: sctp_sysctl.h:124
uint32_t sctp_multiple_asconfs
Definition: sctp_sysctl.h:48
uint32_t sctp_logging_level
Definition: sctp_sysctl.h:100
uint32_t sctp_do_drain
Definition: sctp_sysctl.h:95
uint32_t sctp_default_cc_module
Definition: sctp_sysctl.h:102
uint32_t sctp_min_residual
Definition: sctp_sysctl.h:98
uint32_t sctp_auth_enable
Definition: sctp_sysctl.h:51
uint32_t sctp_buffer_splitting
Definition: sctp_sysctl.h:125
uint32_t sctp_mbuf_threshold_count
Definition: sctp_sysctl.h:94
uint32_t sctp_asoc_free_resc_limit
Definition: sctp_sysctl.h:72
uint32_t sctp_rttvar_rtt
Definition: sctp_sysctl.h:110
uint32_t sctp_diag_info_code
Definition: sctp_sysctl.h:114
uint32_t sctp_enable_sack_immediately
Definition: sctp_sysctl.h:123
uint32_t sctp_min_split_point
Definition: sctp_sysctl.h:67
uint32_t sctp_udp_tunneling_port
Definition: sctp_sysctl.h:122
uint32_t sctp_add_more_threshold
Definition: sctp_sysctl.h:86
uint32_t sctp_assoc_rtx_max_default
Definition: sctp_sysctl.h:83
uint32_t sctp_pmtu_raise_time_default
Definition: sctp_sysctl.h:74
uint32_t sctp_init_rto_max_default
Definition: sctp_sysctl.h:80