sctp_sysctl.h revision 217760
1167598Srrs/*- 2169382Srrs * Copyright (c) 2007, by Cisco Systems, Inc. All rights reserved. 3167598Srrs * 4167598Srrs * Redistribution and use in source and binary forms, with or without 5167598Srrs * modification, are permitted provided that the following conditions are met: 6167598Srrs * 7167598Srrs * a) Redistributions of source code must retain the above copyright notice, 8167598Srrs * this list of conditions and the following disclaimer. 9167598Srrs * 10167598Srrs * b) Redistributions in binary form must reproduce the above copyright 11167598Srrs * notice, this list of conditions and the following disclaimer in 12167598Srrs * the documentation and/or other materials provided with the distribution. 13167598Srrs * 14167598Srrs * c) Neither the name of Cisco Systems, Inc. nor the names of its 15167598Srrs * contributors may be used to endorse or promote products derived 16167598Srrs * from this software without specific prior written permission. 17167598Srrs * 18167598Srrs * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 19167598Srrs * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, 20167598Srrs * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 21167598Srrs * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE 22167598Srrs * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 23167598Srrs * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 24167598Srrs * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 25167598Srrs * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 26167598Srrs * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 27167598Srrs * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 28167598Srrs * THE POSSIBILITY OF SUCH DAMAGE. 29167598Srrs */ 30167598Srrs 31167598Srrs#include <sys/cdefs.h> 32167598Srrs__FBSDID("$FreeBSD: head/sys/netinet/sctp_sysctl.h 217760 2011-01-23 19:36:28Z tuexen $"); 33167598Srrs 34167598Srrs#ifndef __sctp_sysctl_h__ 35167598Srrs#define __sctp_sysctl_h__ 36167598Srrs 37167598Srrs#include <netinet/sctp_os.h> 38167598Srrs#include <netinet/sctp_constants.h> 39167598Srrs 40179783Srrsstruct sctp_sysctl { 41179783Srrs uint32_t sctp_sendspace; 42179783Srrs uint32_t sctp_recvspace; 43179783Srrs uint32_t sctp_auto_asconf; 44179783Srrs uint32_t sctp_multiple_asconfs; 45179783Srrs uint32_t sctp_ecn_enable; 46179783Srrs uint32_t sctp_ecn_nonce; 47179783Srrs uint32_t sctp_strict_sacks; 48211969Stuexen#if !defined(SCTP_WITH_NO_CSUM) 49179783Srrs uint32_t sctp_no_csum_on_loopback; 50211969Stuexen#endif 51179783Srrs uint32_t sctp_strict_init; 52179783Srrs uint32_t sctp_peer_chunk_oh; 53179783Srrs uint32_t sctp_max_burst_default; 54179783Srrs uint32_t sctp_max_chunks_on_queue; 55179783Srrs uint32_t sctp_hashtblsize; 56179783Srrs uint32_t sctp_pcbtblsize; 57179783Srrs uint32_t sctp_min_split_point; 58179783Srrs uint32_t sctp_chunkscale; 59179783Srrs uint32_t sctp_delayed_sack_time_default; 60179783Srrs uint32_t sctp_sack_freq_default; 61179783Srrs uint32_t sctp_system_free_resc_limit; 62179783Srrs uint32_t sctp_asoc_free_resc_limit; 63179783Srrs uint32_t sctp_heartbeat_interval_default; 64179783Srrs uint32_t sctp_pmtu_raise_time_default; 65179783Srrs uint32_t sctp_shutdown_guard_time_default; 66179783Srrs uint32_t sctp_secret_lifetime_default; 67179783Srrs uint32_t sctp_rto_max_default; 68179783Srrs uint32_t sctp_rto_min_default; 69179783Srrs uint32_t sctp_rto_initial_default; 70179783Srrs uint32_t sctp_init_rto_max_default; 71179783Srrs uint32_t sctp_valid_cookie_life_default; 72179783Srrs uint32_t sctp_init_rtx_max_default; 73179783Srrs uint32_t sctp_assoc_rtx_max_default; 74179783Srrs uint32_t sctp_path_rtx_max_default; 75179783Srrs uint32_t sctp_add_more_threshold; 76179783Srrs uint32_t sctp_nr_outgoing_streams_default; 77179783Srrs uint32_t sctp_cmt_on_off; 78179783Srrs uint32_t sctp_cmt_use_dac; 79190689Srrs /* EY 5/5/08 - nr_sack flag variable */ 80185694Srrs uint32_t sctp_nr_sack_on_off; 81179783Srrs uint32_t sctp_cmt_pf; 82179783Srrs uint32_t sctp_use_cwnd_based_maxburst; 83179783Srrs uint32_t sctp_early_fr; 84179783Srrs uint32_t sctp_early_fr_msec; 85179783Srrs uint32_t sctp_asconf_auth_nochk; 86179783Srrs uint32_t sctp_auth_disable; 87179783Srrs uint32_t sctp_nat_friendly; 88179783Srrs uint32_t sctp_L2_abc_variable; 89179783Srrs uint32_t sctp_mbuf_threshold_count; 90179783Srrs uint32_t sctp_do_drain; 91179783Srrs uint32_t sctp_hb_maxburst; 92179783Srrs uint32_t sctp_abort_if_one_2_one_hits_limit; 93179783Srrs uint32_t sctp_strict_data_order; 94179783Srrs uint32_t sctp_min_residual; 95179783Srrs uint32_t sctp_max_retran_chunk; 96179783Srrs uint32_t sctp_logging_level; 97179783Srrs /* JRS - Variable for default congestion control module */ 98179783Srrs uint32_t sctp_default_cc_module; 99217760Stuexen /* RS - Variable for default stream scheduling module */ 100217760Stuexen uint32_t sctp_default_ss_module; 101179783Srrs uint32_t sctp_default_frag_interleave; 102179783Srrs uint32_t sctp_mobility_base; 103179783Srrs uint32_t sctp_mobility_fasthandoff; 104185694Srrs uint32_t sctp_inits_include_nat_friendly; 105179783Srrs#if defined(SCTP_LOCAL_TRACE_BUF) 106179783Srrs struct sctp_log sctp_log; 107179783Srrs#endif 108179783Srrs uint32_t sctp_udp_tunneling_for_client_enable; 109179783Srrs uint32_t sctp_udp_tunneling_port; 110179783Srrs uint32_t sctp_enable_sack_immediately; 111193090Srrs uint32_t sctp_vtag_time_wait; 112212799Stuexen uint32_t sctp_buffer_splitting; 113212800Stuexen uint32_t sctp_initial_cwnd; 114179783Srrs#if defined(SCTP_DEBUG) 115179783Srrs uint32_t sctp_debug_on; 116179783Srrs#endif 117179783Srrs#if defined(__APPLE__) || defined(SCTP_SO_LOCK_TESTING) 118179783Srrs uint32_t sctp_output_unlocked; 119179783Srrs#endif 120179783Srrs}; 121179783Srrs 122167598Srrs/* 123167598Srrs * limits for the sysctl variables 124167598Srrs */ 125167598Srrs/* maxdgram: Maximum outgoing SCTP buffer size */ 126167598Srrs#define SCTPCTL_MAXDGRAM_DESC "Maximum outgoing SCTP buffer size" 127167598Srrs#define SCTPCTL_MAXDGRAM_MIN 0 128167598Srrs#define SCTPCTL_MAXDGRAM_MAX 0xFFFFFFFF 129167598Srrs#define SCTPCTL_MAXDGRAM_DEFAULT 262144 /* 256k */ 130167598Srrs 131167598Srrs/* recvspace: Maximum incoming SCTP buffer size */ 132167598Srrs#define SCTPCTL_RECVSPACE_DESC "Maximum incoming SCTP buffer size" 133167598Srrs#define SCTPCTL_RECVSPACE_MIN 0 134167598Srrs#define SCTPCTL_RECVSPACE_MAX 0xFFFFFFFF 135167598Srrs#define SCTPCTL_RECVSPACE_DEFAULT 262144 /* 256k */ 136167598Srrs 137167598Srrs/* autoasconf: Enable SCTP Auto-ASCONF */ 138167598Srrs#define SCTPCTL_AUTOASCONF_DESC "Enable SCTP Auto-ASCONF" 139167598Srrs#define SCTPCTL_AUTOASCONF_MIN 0 140167598Srrs#define SCTPCTL_AUTOASCONF_MAX 1 141167598Srrs#define SCTPCTL_AUTOASCONF_DEFAULT SCTP_DEFAULT_AUTO_ASCONF 142167598Srrs 143179157Srrs/* autoasconf: Enable SCTP Auto-ASCONF */ 144179157Srrs#define SCTPCTL_MULTIPLEASCONFS_DESC "Enable SCTP Muliple-ASCONFs" 145179157Srrs#define SCTPCTL_MULTIPLEASCONFS_MIN 0 146179157Srrs#define SCTPCTL_MULTIPLEASCONFS_MAX 1 147179157Srrs#define SCTPCTL_MULTIPLEASCONFS_DEFAULT SCTP_DEFAULT_MULTIPLE_ASCONFS 148179157Srrs 149167598Srrs/* ecn_enable: Enable SCTP ECN */ 150167598Srrs#define SCTPCTL_ECN_ENABLE_DESC "Enable SCTP ECN" 151167598Srrs#define SCTPCTL_ECN_ENABLE_MIN 0 152167598Srrs#define SCTPCTL_ECN_ENABLE_MAX 1 153167598Srrs#define SCTPCTL_ECN_ENABLE_DEFAULT 1 154167598Srrs 155167598Srrs/* ecn_nonce: Enable SCTP ECN Nonce */ 156167598Srrs#define SCTPCTL_ECN_NONCE_DESC "Enable SCTP ECN Nonce" 157167598Srrs#define SCTPCTL_ECN_NONCE_MIN 0 158167598Srrs#define SCTPCTL_ECN_NONCE_MAX 1 159167598Srrs#define SCTPCTL_ECN_NONCE_DEFAULT 0 160167598Srrs 161167598Srrs/* strict_sacks: Enable SCTP Strict SACK checking */ 162167598Srrs#define SCTPCTL_STRICT_SACKS_DESC "Enable SCTP Strict SACK checking" 163167598Srrs#define SCTPCTL_STRICT_SACKS_MIN 0 164167598Srrs#define SCTPCTL_STRICT_SACKS_MAX 1 165182367Srrs#define SCTPCTL_STRICT_SACKS_DEFAULT 1 166167598Srrs 167167598Srrs/* loopback_nocsum: Enable NO Csum on packets sent on loopback */ 168167598Srrs#define SCTPCTL_LOOPBACK_NOCSUM_DESC "Enable NO Csum on packets sent on loopback" 169167598Srrs#define SCTPCTL_LOOPBACK_NOCSUM_MIN 0 170167598Srrs#define SCTPCTL_LOOPBACK_NOCSUM_MAX 1 171167598Srrs#define SCTPCTL_LOOPBACK_NOCSUM_DEFAULT 1 172167598Srrs 173167598Srrs/* strict_init: Enable strict INIT/INIT-ACK singleton enforcement */ 174167598Srrs#define SCTPCTL_STRICT_INIT_DESC "Enable strict INIT/INIT-ACK singleton enforcement" 175167598Srrs#define SCTPCTL_STRICT_INIT_MIN 0 176167598Srrs#define SCTPCTL_STRICT_INIT_MAX 1 177167598Srrs#define SCTPCTL_STRICT_INIT_DEFAULT 1 178167598Srrs 179167598Srrs/* peer_chkoh: Amount to debit peers rwnd per chunk sent */ 180167598Srrs#define SCTPCTL_PEER_CHKOH_DESC "Amount to debit peers rwnd per chunk sent" 181167598Srrs#define SCTPCTL_PEER_CHKOH_MIN 0 182167598Srrs#define SCTPCTL_PEER_CHKOH_MAX 0xFFFFFFFF 183170642Srrs#define SCTPCTL_PEER_CHKOH_DEFAULT 256 184167598Srrs 185167598Srrs/* maxburst: Default max burst for sctp endpoints */ 186167598Srrs#define SCTPCTL_MAXBURST_DESC "Default max burst for sctp endpoints" 187167598Srrs#define SCTPCTL_MAXBURST_MIN 1 188167598Srrs#define SCTPCTL_MAXBURST_MAX 0xFFFFFFFF 189167598Srrs#define SCTPCTL_MAXBURST_DEFAULT SCTP_DEF_MAX_BURST 190167598Srrs 191167598Srrs/* maxchunks: Default max chunks on queue per asoc */ 192167598Srrs#define SCTPCTL_MAXCHUNKS_DESC "Default max chunks on queue per asoc" 193167598Srrs#define SCTPCTL_MAXCHUNKS_MIN 0 194167598Srrs#define SCTPCTL_MAXCHUNKS_MAX 0xFFFFFFFF 195167598Srrs#define SCTPCTL_MAXCHUNKS_DEFAULT SCTP_ASOC_MAX_CHUNKS_ON_QUEUE 196167598Srrs 197167598Srrs/* tcbhashsize: Tuneable for Hash table sizes */ 198167598Srrs#define SCTPCTL_TCBHASHSIZE_DESC "Tunable for TCB hash table sizes" 199167598Srrs#define SCTPCTL_TCBHASHSIZE_MIN 1 200167598Srrs#define SCTPCTL_TCBHASHSIZE_MAX 0xFFFFFFFF 201167598Srrs#define SCTPCTL_TCBHASHSIZE_DEFAULT SCTP_TCBHASHSIZE 202167598Srrs 203167598Srrs/* pcbhashsize: Tuneable for PCB Hash table sizes */ 204167598Srrs#define SCTPCTL_PCBHASHSIZE_DESC "Tunable for PCB hash table sizes" 205167598Srrs#define SCTPCTL_PCBHASHSIZE_MIN 1 206167598Srrs#define SCTPCTL_PCBHASHSIZE_MAX 0xFFFFFFFF 207167598Srrs#define SCTPCTL_PCBHASHSIZE_DEFAULT SCTP_PCBHASHSIZE 208167598Srrs 209167598Srrs/* min_split_point: Minimum size when splitting a chunk */ 210167598Srrs#define SCTPCTL_MIN_SPLIT_POINT_DESC "Minimum size when splitting a chunk" 211167598Srrs#define SCTPCTL_MIN_SPLIT_POINT_MIN 0 212167598Srrs#define SCTPCTL_MIN_SPLIT_POINT_MAX 0xFFFFFFFF 213167598Srrs#define SCTPCTL_MIN_SPLIT_POINT_DEFAULT SCTP_DEFAULT_SPLIT_POINT_MIN 214167598Srrs 215167598Srrs/* chunkscale: Tuneable for Scaling of number of chunks and messages */ 216167598Srrs#define SCTPCTL_CHUNKSCALE_DESC "Tuneable for Scaling of number of chunks and messages" 217167598Srrs#define SCTPCTL_CHUNKSCALE_MIN 1 218167598Srrs#define SCTPCTL_CHUNKSCALE_MAX 0xFFFFFFFF 219167598Srrs#define SCTPCTL_CHUNKSCALE_DEFAULT SCTP_CHUNKQUEUE_SCALE 220167598Srrs 221167598Srrs/* delayed_sack_time: Default delayed SACK timer in msec */ 222167598Srrs#define SCTPCTL_DELAYED_SACK_TIME_DESC "Default delayed SACK timer in msec" 223167598Srrs#define SCTPCTL_DELAYED_SACK_TIME_MIN 0 224167598Srrs#define SCTPCTL_DELAYED_SACK_TIME_MAX 0xFFFFFFFF 225167598Srrs#define SCTPCTL_DELAYED_SACK_TIME_DEFAULT SCTP_RECV_MSEC 226167598Srrs 227167598Srrs/* sack_freq: Default SACK frequency */ 228167598Srrs#define SCTPCTL_SACK_FREQ_DESC "Default SACK frequency" 229167598Srrs#define SCTPCTL_SACK_FREQ_MIN 0 230167598Srrs#define SCTPCTL_SACK_FREQ_MAX 0xFFFFFFFF 231167598Srrs#define SCTPCTL_SACK_FREQ_DEFAULT SCTP_DEFAULT_SACK_FREQ 232167598Srrs 233167598Srrs/* sys_resource: Max number of cached resources in the system */ 234167598Srrs#define SCTPCTL_SYS_RESOURCE_DESC "Max number of cached resources in the system" 235167598Srrs#define SCTPCTL_SYS_RESOURCE_MIN 0 236167598Srrs#define SCTPCTL_SYS_RESOURCE_MAX 0xFFFFFFFF 237167598Srrs#define SCTPCTL_SYS_RESOURCE_DEFAULT SCTP_DEF_SYSTEM_RESC_LIMIT 238167598Srrs 239167598Srrs/* asoc_resource: Max number of cached resources in an asoc */ 240167598Srrs#define SCTPCTL_ASOC_RESOURCE_DESC "Max number of cached resources in an asoc" 241167598Srrs#define SCTPCTL_ASOC_RESOURCE_MIN 0 242167598Srrs#define SCTPCTL_ASOC_RESOURCE_MAX 0xFFFFFFFF 243167598Srrs#define SCTPCTL_ASOC_RESOURCE_DEFAULT SCTP_DEF_ASOC_RESC_LIMIT 244167598Srrs 245167598Srrs/* heartbeat_interval: Default heartbeat interval in msec */ 246167598Srrs#define SCTPCTL_HEARTBEAT_INTERVAL_DESC "Default heartbeat interval in msec" 247167598Srrs#define SCTPCTL_HEARTBEAT_INTERVAL_MIN 0 248167598Srrs#define SCTPCTL_HEARTBEAT_INTERVAL_MAX 0xFFFFFFFF 249167598Srrs#define SCTPCTL_HEARTBEAT_INTERVAL_DEFAULT SCTP_HB_DEFAULT_MSEC 250167598Srrs 251167598Srrs/* pmtu_raise_time: Default PMTU raise timer in sec */ 252167598Srrs#define SCTPCTL_PMTU_RAISE_TIME_DESC "Default PMTU raise timer in sec" 253167598Srrs#define SCTPCTL_PMTU_RAISE_TIME_MIN 0 254167598Srrs#define SCTPCTL_PMTU_RAISE_TIME_MAX 0xFFFFFFFF 255167598Srrs#define SCTPCTL_PMTU_RAISE_TIME_DEFAULT SCTP_DEF_PMTU_RAISE_SEC 256167598Srrs 257167598Srrs/* shutdown_guard_time: Default shutdown guard timer in sec */ 258167598Srrs#define SCTPCTL_SHUTDOWN_GUARD_TIME_DESC "Default shutdown guard timer in sec" 259167598Srrs#define SCTPCTL_SHUTDOWN_GUARD_TIME_MIN 0 260167598Srrs#define SCTPCTL_SHUTDOWN_GUARD_TIME_MAX 0xFFFFFFFF 261167598Srrs#define SCTPCTL_SHUTDOWN_GUARD_TIME_DEFAULT SCTP_DEF_MAX_SHUTDOWN_SEC 262167598Srrs 263167598Srrs/* secret_lifetime: Default secret lifetime in sec */ 264167598Srrs#define SCTPCTL_SECRET_LIFETIME_DESC "Default secret lifetime in sec" 265167598Srrs#define SCTPCTL_SECRET_LIFETIME_MIN 0 266167598Srrs#define SCTPCTL_SECRET_LIFETIME_MAX 0xFFFFFFFF 267167598Srrs#define SCTPCTL_SECRET_LIFETIME_DEFAULT SCTP_DEFAULT_SECRET_LIFE_SEC 268167598Srrs 269167598Srrs/* rto_max: Default maximum retransmission timeout in msec */ 270167598Srrs#define SCTPCTL_RTO_MAX_DESC "Default maximum retransmission timeout in msec" 271167598Srrs#define SCTPCTL_RTO_MAX_MIN 0 272167598Srrs#define SCTPCTL_RTO_MAX_MAX 0xFFFFFFFF 273167598Srrs#define SCTPCTL_RTO_MAX_DEFAULT SCTP_RTO_UPPER_BOUND 274167598Srrs 275167598Srrs/* rto_min: Default minimum retransmission timeout in msec */ 276167598Srrs#define SCTPCTL_RTO_MIN_DESC "Default minimum retransmission timeout in msec" 277167598Srrs#define SCTPCTL_RTO_MIN_MIN 0 278167598Srrs#define SCTPCTL_RTO_MIN_MAX 0xFFFFFFFF 279167598Srrs#define SCTPCTL_RTO_MIN_DEFAULT SCTP_RTO_LOWER_BOUND 280167598Srrs 281167598Srrs/* rto_initial: Default initial retransmission timeout in msec */ 282167598Srrs#define SCTPCTL_RTO_INITIAL_DESC "Default initial retransmission timeout in msec" 283167598Srrs#define SCTPCTL_RTO_INITIAL_MIN 0 284167598Srrs#define SCTPCTL_RTO_INITIAL_MAX 0xFFFFFFFF 285167598Srrs#define SCTPCTL_RTO_INITIAL_DEFAULT SCTP_RTO_INITIAL 286167598Srrs 287167598Srrs/* init_rto_max: Default maximum retransmission timeout during association setup in msec */ 288167598Srrs#define SCTPCTL_INIT_RTO_MAX_DESC "Default maximum retransmission timeout during association setup in msec" 289167598Srrs#define SCTPCTL_INIT_RTO_MAX_MIN 0 290167598Srrs#define SCTPCTL_INIT_RTO_MAX_MAX 0xFFFFFFFF 291167598Srrs#define SCTPCTL_INIT_RTO_MAX_DEFAULT SCTP_RTO_UPPER_BOUND 292167598Srrs 293167598Srrs/* valid_cookie_life: Default cookie lifetime in sec */ 294167598Srrs#define SCTPCTL_VALID_COOKIE_LIFE_DESC "Default cookie lifetime in sec" 295167598Srrs#define SCTPCTL_VALID_COOKIE_LIFE_MIN 0 296167598Srrs#define SCTPCTL_VALID_COOKIE_LIFE_MAX 0xFFFFFFFF 297167598Srrs#define SCTPCTL_VALID_COOKIE_LIFE_DEFAULT SCTP_DEFAULT_COOKIE_LIFE 298167598Srrs 299167598Srrs/* init_rtx_max: Default maximum number of retransmission for INIT chunks */ 300167598Srrs#define SCTPCTL_INIT_RTX_MAX_DESC "Default maximum number of retransmission for INIT chunks" 301167598Srrs#define SCTPCTL_INIT_RTX_MAX_MIN 0 302167598Srrs#define SCTPCTL_INIT_RTX_MAX_MAX 0xFFFFFFFF 303167598Srrs#define SCTPCTL_INIT_RTX_MAX_DEFAULT SCTP_DEF_MAX_INIT 304167598Srrs 305167598Srrs/* assoc_rtx_max: Default maximum number of retransmissions per association */ 306167598Srrs#define SCTPCTL_ASSOC_RTX_MAX_DESC "Default maximum number of retransmissions per association" 307167598Srrs#define SCTPCTL_ASSOC_RTX_MAX_MIN 0 308167598Srrs#define SCTPCTL_ASSOC_RTX_MAX_MAX 0xFFFFFFFF 309167598Srrs#define SCTPCTL_ASSOC_RTX_MAX_DEFAULT SCTP_DEF_MAX_SEND 310167598Srrs 311167598Srrs/* path_rtx_max: Default maximum of retransmissions per path */ 312167598Srrs#define SCTPCTL_PATH_RTX_MAX_DESC "Default maximum of retransmissions per path" 313167598Srrs#define SCTPCTL_PATH_RTX_MAX_MIN 0 314167598Srrs#define SCTPCTL_PATH_RTX_MAX_MAX 0xFFFFFFFF 315167598Srrs#define SCTPCTL_PATH_RTX_MAX_DEFAULT SCTP_DEF_MAX_PATH_RTX 316167598Srrs 317167598Srrs/* add_more_on_output: When space wise is it worthwhile to try to add more to a socket send buffer */ 318167598Srrs#define SCTPCTL_ADD_MORE_ON_OUTPUT_DESC "When space wise is it worthwhile to try to add more to a socket send buffer" 319167598Srrs#define SCTPCTL_ADD_MORE_ON_OUTPUT_MIN 0 320167598Srrs#define SCTPCTL_ADD_MORE_ON_OUTPUT_MAX 0xFFFFFFFF 321167598Srrs#define SCTPCTL_ADD_MORE_ON_OUTPUT_DEFAULT SCTP_DEFAULT_ADD_MORE 322167598Srrs 323167598Srrs/* outgoing_streams: Default number of outgoing streams */ 324167598Srrs#define SCTPCTL_OUTGOING_STREAMS_DESC "Default number of outgoing streams" 325167598Srrs#define SCTPCTL_OUTGOING_STREAMS_MIN 1 326167598Srrs#define SCTPCTL_OUTGOING_STREAMS_MAX 65535 327167598Srrs#define SCTPCTL_OUTGOING_STREAMS_DEFAULT SCTP_OSTREAM_INITIAL 328167598Srrs 329167598Srrs/* cmt_on_off: CMT on/off flag */ 330216669Stuexen#define SCTPCTL_CMT_ON_OFF_DESC "CMT settings" 331167598Srrs#define SCTPCTL_CMT_ON_OFF_MIN 0 332216669Stuexen#define SCTPCTL_CMT_ON_OFF_MAX 2 333167598Srrs#define SCTPCTL_CMT_ON_OFF_DEFAULT 0 334167598Srrs 335185694Srrs/* EY - nr_sack_on_off: NR_SACK on/off flag */ 336185694Srrs#define SCTPCTL_NR_SACK_ON_OFF_DESC "NR_SACK on/off flag" 337185694Srrs#define SCTPCTL_NR_SACK_ON_OFF_MIN 0 338185694Srrs#define SCTPCTL_NR_SACK_ON_OFF_MAX 1 339185694Srrs#define SCTPCTL_NR_SACK_ON_OFF_DEFAULT 0 340185694Srrs 341172091Srrs/* cmt_use_dac: CMT DAC on/off flag */ 342172091Srrs#define SCTPCTL_CMT_USE_DAC_DESC "CMT DAC on/off flag" 343172091Srrs#define SCTPCTL_CMT_USE_DAC_MIN 0 344172091Srrs#define SCTPCTL_CMT_USE_DAC_MAX 1 345172091Srrs#define SCTPCTL_CMT_USE_DAC_DEFAULT 0 346172091Srrs 347172091Srrs/* JRS 5/2107 - CMT PF type flag */ 348172091Srrs#define SCTPCTL_CMT_PF_DESC "CMT PF type flag" 349172091Srrs#define SCTPCTL_CMT_PF_MIN 0 350172091Srrs#define SCTPCTL_CMT_PF_MAX 2 351172091Srrs#define SCTPCTL_CMT_PF_DEFAULT 0 352172091Srrs 353167598Srrs/* cwnd_maxburst: Use a CWND adjusting maxburst */ 354167598Srrs#define SCTPCTL_CWND_MAXBURST_DESC "Use a CWND adjusting maxburst" 355167598Srrs#define SCTPCTL_CWND_MAXBURST_MIN 0 356167598Srrs#define SCTPCTL_CWND_MAXBURST_MAX 1 357167598Srrs#define SCTPCTL_CWND_MAXBURST_DEFAULT 1 358167598Srrs 359167598Srrs/* early_fast_retran: Early Fast Retransmit with timer */ 360167598Srrs#define SCTPCTL_EARLY_FAST_RETRAN_DESC "Early Fast Retransmit with timer" 361167598Srrs#define SCTPCTL_EARLY_FAST_RETRAN_MIN 0 362167598Srrs#define SCTPCTL_EARLY_FAST_RETRAN_MAX 0xFFFFFFFF 363167598Srrs#define SCTPCTL_EARLY_FAST_RETRAN_DEFAULT 0 364167598Srrs 365167598Srrs/* early_fast_retran_msec: Early Fast Retransmit minimum timer value */ 366167598Srrs#define SCTPCTL_EARLY_FAST_RETRAN_MSEC_DESC "Early Fast Retransmit minimum timer value" 367167598Srrs#define SCTPCTL_EARLY_FAST_RETRAN_MSEC_MIN 0 368167598Srrs#define SCTPCTL_EARLY_FAST_RETRAN_MSEC_MAX 0xFFFFFFFF 369167598Srrs#define SCTPCTL_EARLY_FAST_RETRAN_MSEC_DEFAULT SCTP_MINFR_MSEC_TIMER 370167598Srrs 371167598Srrs/* asconf_auth_nochk: Disable SCTP ASCONF AUTH requirement */ 372167598Srrs#define SCTPCTL_ASCONF_AUTH_NOCHK_DESC "Disable SCTP ASCONF AUTH requirement" 373167598Srrs#define SCTPCTL_ASCONF_AUTH_NOCHK_MIN 0 374167598Srrs#define SCTPCTL_ASCONF_AUTH_NOCHK_MAX 1 375167598Srrs#define SCTPCTL_ASCONF_AUTH_NOCHK_DEFAULT 0 376167598Srrs 377167598Srrs/* auth_disable: Disable SCTP AUTH function */ 378167598Srrs#define SCTPCTL_AUTH_DISABLE_DESC "Disable SCTP AUTH function" 379167598Srrs#define SCTPCTL_AUTH_DISABLE_MIN 0 380167598Srrs#define SCTPCTL_AUTH_DISABLE_MAX 1 381167598Srrs#define SCTPCTL_AUTH_DISABLE_DEFAULT 0 382167598Srrs 383167598Srrs/* nat_friendly: SCTP NAT friendly operation */ 384167598Srrs#define SCTPCTL_NAT_FRIENDLY_DESC "SCTP NAT friendly operation" 385167598Srrs#define SCTPCTL_NAT_FRIENDLY_MIN 0 386167598Srrs#define SCTPCTL_NAT_FRIENDLY_MAX 1 387167598Srrs#define SCTPCTL_NAT_FRIENDLY_DEFAULT 1 388167598Srrs 389167598Srrs/* abc_l_var: SCTP ABC max increase per SACK (L) */ 390167598Srrs#define SCTPCTL_ABC_L_VAR_DESC "SCTP ABC max increase per SACK (L)" 391167598Srrs#define SCTPCTL_ABC_L_VAR_MIN 0 392167598Srrs#define SCTPCTL_ABC_L_VAR_MAX 0xFFFFFFFF 393167598Srrs#define SCTPCTL_ABC_L_VAR_DEFAULT 1 394167598Srrs 395167598Srrs/* max_chained_mbufs: Default max number of small mbufs on a chain */ 396167598Srrs#define SCTPCTL_MAX_CHAINED_MBUFS_DESC "Default max number of small mbufs on a chain" 397167598Srrs#define SCTPCTL_MAX_CHAINED_MBUFS_MIN 0 398167598Srrs#define SCTPCTL_MAX_CHAINED_MBUFS_MAX 0xFFFFFFFF 399167598Srrs#define SCTPCTL_MAX_CHAINED_MBUFS_DEFAULT SCTP_DEFAULT_MBUFS_IN_CHAIN 400167598Srrs 401167598Srrs/* do_sctp_drain: Should SCTP respond to the drain calls */ 402167598Srrs#define SCTPCTL_DO_SCTP_DRAIN_DESC "Should SCTP respond to the drain calls" 403167598Srrs#define SCTPCTL_DO_SCTP_DRAIN_MIN 0 404167598Srrs#define SCTPCTL_DO_SCTP_DRAIN_MAX 1 405167598Srrs#define SCTPCTL_DO_SCTP_DRAIN_DEFAULT 1 406167598Srrs 407167598Srrs/* hb_max_burst: Confirmation Heartbeat max burst? */ 408172091Srrs#define SCTPCTL_HB_MAX_BURST_DESC "Confirmation Heartbeat max burst" 409167598Srrs#define SCTPCTL_HB_MAX_BURST_MIN 1 410167598Srrs#define SCTPCTL_HB_MAX_BURST_MAX 0xFFFFFFFF 411167598Srrs#define SCTPCTL_HB_MAX_BURST_DEFAULT SCTP_DEF_MAX_BURST 412167598Srrs 413167598Srrs/* abort_at_limit: When one-2-one hits qlimit abort */ 414167598Srrs#define SCTPCTL_ABORT_AT_LIMIT_DESC "When one-2-one hits qlimit abort" 415167598Srrs#define SCTPCTL_ABORT_AT_LIMIT_MIN 0 416167598Srrs#define SCTPCTL_ABORT_AT_LIMIT_MAX 1 417167598Srrs#define SCTPCTL_ABORT_AT_LIMIT_DEFAULT 0 418167598Srrs 419167598Srrs/* strict_data_order: Enforce strict data ordering, abort if control inside data */ 420167598Srrs#define SCTPCTL_STRICT_DATA_ORDER_DESC "Enforce strict data ordering, abort if control inside data" 421167598Srrs#define SCTPCTL_STRICT_DATA_ORDER_MIN 0 422167598Srrs#define SCTPCTL_STRICT_DATA_ORDER_MAX 1 423167598Srrs#define SCTPCTL_STRICT_DATA_ORDER_DEFAULT 0 424167598Srrs 425168299Srrs/* min_residual: min residual in a data fragment leftover */ 426168124Srrs#define SCTPCTL_MIN_RESIDUAL_DESC "Minimum residual data chunk in second part of split" 427168124Srrs#define SCTPCTL_MIN_RESIDUAL_MIN 20 428168124Srrs#define SCTPCTL_MIN_RESIDUAL_MAX 65535 429168124Srrs#define SCTPCTL_MIN_RESIDUAL_DEFAULT 1452 430168124Srrs 431168299Srrs/* max_retran_chunk: max chunk retransmissions */ 432168299Srrs#define SCTPCTL_MAX_RETRAN_CHUNK_DESC "Maximum times an unlucky chunk can be retran'd before assoc abort" 433168299Srrs#define SCTPCTL_MAX_RETRAN_CHUNK_MIN 0 434168299Srrs#define SCTPCTL_MAX_RETRAN_CHUNK_MAX 65535 435168299Srrs#define SCTPCTL_MAX_RETRAN_CHUNK_DEFAULT 30 436168124Srrs 437170744Srrs/* sctp_logging: This gives us logging when the options are enabled */ 438170744Srrs#define SCTPCTL_LOGGING_LEVEL_DESC "Ltrace/KTR trace logging level" 439170744Srrs#define SCTPCTL_LOGGING_LEVEL_MIN 0 440170814Srrs#define SCTPCTL_LOGGING_LEVEL_MAX 0xffffffff 441170744Srrs#define SCTPCTL_LOGGING_LEVEL_DEFAULT 0 442168124Srrs 443171440Srrs/* JRS - default congestion control module sysctl */ 444171440Srrs#define SCTPCTL_DEFAULT_CC_MODULE_DESC "Default congestion control module" 445171440Srrs#define SCTPCTL_DEFAULT_CC_MODULE_MIN 0 446171440Srrs#define SCTPCTL_DEFAULT_CC_MODULE_MAX 2 447171440Srrs#define SCTPCTL_DEFAULT_CC_MODULE_DEFAULT 0 448171440Srrs 449217760Stuexen/* RS - default stream scheduling module sysctl */ 450217760Stuexen#define SCTPCTL_DEFAULT_SS_MODULE_DESC "Default stream scheduling module" 451217760Stuexen#define SCTPCTL_DEFAULT_SS_MODULE_MIN 0 452217760Stuexen#define SCTPCTL_DEFAULT_SS_MODULE_MAX 5 453217760Stuexen#define SCTPCTL_DEFAULT_SS_MODULE_DEFAULT 0 454217760Stuexen 455171943Srrs/* RRS - default fragment interleave */ 456171943Srrs#define SCTPCTL_DEFAULT_FRAG_INTERLEAVE_DESC "Default fragment interleave level" 457171943Srrs#define SCTPCTL_DEFAULT_FRAG_INTERLEAVE_MIN 0 458171943Srrs#define SCTPCTL_DEFAULT_FRAG_INTERLEAVE_MAX 2 459171943Srrs#define SCTPCTL_DEFAULT_FRAG_INTERLEAVE_DEFAULT 1 460171943Srrs 461171990Srrs/* mobility_base: Enable SCTP mobility support */ 462171990Srrs#define SCTPCTL_MOBILITY_BASE_DESC "Enable SCTP base mobility" 463171990Srrs#define SCTPCTL_MOBILITY_BASE_MIN 0 464171990Srrs#define SCTPCTL_MOBILITY_BASE_MAX 1 465171990Srrs#define SCTPCTL_MOBILITY_BASE_DEFAULT SCTP_DEFAULT_MOBILITY_BASE 466171943Srrs 467171990Srrs/* mobility_fasthandoff: Enable SCTP fast handoff support */ 468171990Srrs#define SCTPCTL_MOBILITY_FASTHANDOFF_DESC "Enable SCTP fast handoff" 469171990Srrs#define SCTPCTL_MOBILITY_FASTHANDOFF_MIN 0 470171990Srrs#define SCTPCTL_MOBILITY_FASTHANDOFF_MAX 1 471171990Srrs#define SCTPCTL_MOBILITY_FASTHANDOFF_DEFAULT SCTP_DEFAULT_MOBILITY_FASTHANDOFF 472171990Srrs 473179157Srrs/* Enable SCTP/UDP tunneling for clients*/ 474179157Srrs#define SCTPCTL_UDP_TUNNELING_FOR_CLIENT_ENABLE_DESC "Enable SCTP/UDP tunneling for client" 475179157Srrs#define SCTPCTL_UDP_TUNNELING_FOR_CLIENT_ENABLE_MIN 0 476179157Srrs#define SCTPCTL_UDP_TUNNELING_FOR_CLIENT_ENABLE_MAX 1 477179157Srrs#define SCTPCTL_UDP_TUNNELING_FOR_CLIENT_ENABLE_DEFAULT SCTPCTL_UDP_TUNNELING_FOR_CLIENT_ENABLE_MIN 478179157Srrs 479179157Srrs/* Enable SCTP/UDP tunneling port */ 480179157Srrs#define SCTPCTL_UDP_TUNNELING_PORT_DESC "Set the SCTP/UDP tunneling port" 481179157Srrs#define SCTPCTL_UDP_TUNNELING_PORT_MIN 0 482179157Srrs#define SCTPCTL_UDP_TUNNELING_PORT_MAX 65535 483179157Srrs#define SCTPCTL_UDP_TUNNELING_PORT_DEFAULT SCTP_OVER_UDP_TUNNELING_PORT 484179157Srrs 485179783Srrs/* Enable sending of the SACK-IMMEDIATELY bit */ 486179783Srrs#define SCTPCTL_SACK_IMMEDIATELY_ENABLE_DESC "Enable sending of the SACK-IMMEDIATELY-bit." 487179783Srrs#define SCTPCTL_SACK_IMMEDIATELY_ENABLE_MIN 0 488179783Srrs#define SCTPCTL_SACK_IMMEDIATELY_ENABLE_MAX 1 489179783Srrs#define SCTPCTL_SACK_IMMEDIATELY_ENABLE_DEFAULT SCTPCTL_SACK_IMMEDIATELY_ENABLE_MIN 490179783Srrs 491212799Stuexen/* Enable sending of the NAT-FRIENDLY message */ 492195919Stuexen#define SCTPCTL_NAT_FRIENDLY_INITS_DESC "Enable sending of the nat-friendly SCTP option on INITs." 493185694Srrs#define SCTPCTL_NAT_FRIENDLY_INITS_MIN 0 494185694Srrs#define SCTPCTL_NAT_FRIENDLY_INITS_MAX 1 495185694Srrs#define SCTPCTL_NAT_FRIENDLY_INITS_DEFAULT SCTPCTL_NAT_FRIENDLY_INITS_MIN 496185694Srrs 497212799Stuexen/* Vtag time wait in seconds */ 498212799Stuexen#define SCTPCTL_TIME_WAIT_DESC "Vtag time wait time in seconds, 0 disables it." 499193090Srrs#define SCTPCTL_TIME_WAIT_MIN 0 500193090Srrs#define SCTPCTL_TIME_WAIT_MAX 0xffffffff 501193090Srrs#define SCTPCTL_TIME_WAIT_DEFAULT SCTP_TIME_WAIT 502193090Srrs 503212799Stuexen/* Enable Send/Receive buffer splitting */ 504212799Stuexen#define SCTPCTL_BUFFER_SPLITTING_DESC "Enable send/receive buffer splitting." 505212799Stuexen#define SCTPCTL_BUFFER_SPLITTING_MIN 0 506212799Stuexen#define SCTPCTL_BUFFER_SPLITTING_MAX 0x3 507212799Stuexen#define SCTPCTL_BUFFER_SPLITTING_DEFAULT SCTPCTL_BUFFER_SPLITTING_MIN 508193090Srrs 509212800Stuexen/* Initial congestion window in MTU */ 510212851Stuexen#define SCTPCTL_INITIAL_CWND_DESC "Initial congestion window in MTUs" 511216672Stuexen#define SCTPCTL_INITIAL_CWND_MIN 0 512212800Stuexen#define SCTPCTL_INITIAL_CWND_MAX 0xffffffff 513212800Stuexen#define SCTPCTL_INITIAL_CWND_DEFAULT 3 514212800Stuexen 515172091Srrs#if defined(SCTP_DEBUG) 516167598Srrs/* debug: Configure debug output */ 517167598Srrs#define SCTPCTL_DEBUG_DESC "Configure debug output" 518167598Srrs#define SCTPCTL_DEBUG_MIN 0 519167598Srrs#define SCTPCTL_DEBUG_MAX 0xFFFFFFFF 520167598Srrs#define SCTPCTL_DEBUG_DEFAULT 0 521167598Srrs#endif 522167598Srrs 523167598Srrs 524179783Srrs#if defined (__APPLE__) || defined(SCTP_SO_LOCK_TESTING) 525179783Srrs#define SCTPCTL_OUTPUT_UNLOCKED_DESC "Unlock socket when sending packets down to IP." 526179783Srrs#define SCTPCTL_OUTPUT_UNLOCKED_MIN 0 527179783Srrs#define SCTPCTL_OUTPUT_UNLOCKED_MAX 1 528179783Srrs#define SCTPCTL_OUTPUT_UNLOCKED_DEFAULT SCTPCTL_OUTPUT_UNLOCKED_MIN 529172157Srrs#endif 530179157Srrs 531167598Srrs 532180387Srrs#if defined(_KERNEL) || defined(__Userspace__) 533172091Srrs#if defined(SYSCTL_DECL) 534167598SrrsSYSCTL_DECL(_net_inet_sctp); 535167598Srrs#endif 536167598Srrs 537179783Srrsvoid sctp_init_sysctls(void); 538179783Srrs 539167598Srrs#endif /* _KERNEL */ 540167598Srrs#endif /* __sctp_sysctl_h__ */ 541