netwerk/sctp/src/netinet/sctp_sysctl.h

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/netwerk/sctp/src/netinet/sctp_sysctl.h	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,599 @@
     1.4 +/*-
     1.5 + * Copyright (c) 2007, by Cisco Systems, Inc. All rights reserved.
     1.6 + * Copyright (c) 2008-2012, by Randall Stewart. All rights reserved.
     1.7 + * Copyright (c) 2008-2012, by Michael Tuexen. All rights reserved.
     1.8 + *
     1.9 + * Redistribution and use in source and binary forms, with or without
    1.10 + * modification, are permitted provided that the following conditions are met:
    1.11 + *
    1.12 + * a) Redistributions of source code must retain the above copyright notice,
    1.13 + *    this list of conditions and the following disclaimer.
    1.14 + *
    1.15 + * b) Redistributions in binary form must reproduce the above copyright
    1.16 + *    notice, this list of conditions and the following disclaimer in
    1.17 + *    the documentation and/or other materials provided with the distribution.
    1.18 + *
    1.19 + * c) Neither the name of Cisco Systems, Inc. nor the names of its
    1.20 + *    contributors may be used to endorse or promote products derived
    1.21 + *    from this software without specific prior written permission.
    1.22 + *
    1.23 + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
    1.24 + * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
    1.25 + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
    1.26 + * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
    1.27 + * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
    1.28 + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
    1.29 + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
    1.30 + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
    1.31 + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
    1.32 + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
    1.33 + * THE POSSIBILITY OF SUCH DAMAGE.
    1.34 + */
    1.35 +
    1.36 +#ifdef __FreeBSD__
    1.37 +#include <sys/cdefs.h>
    1.38 +__FBSDID("$FreeBSD: head/sys/netinet/sctp_sysctl.h 252779 2013-07-05 10:08:49Z tuexen $");
    1.39 +#endif
    1.40 +
    1.41 +#ifndef _NETINET_SCTP_SYSCTL_H_
    1.42 +#define _NETINET_SCTP_SYSCTL_H_
    1.43 +
    1.44 +#include <netinet/sctp_os.h>
    1.45 +#include <netinet/sctp_constants.h>
    1.46 +
    1.47 +struct sctp_sysctl {
    1.48 +	uint32_t sctp_sendspace;
    1.49 +	uint32_t sctp_recvspace;
    1.50 +	uint32_t sctp_auto_asconf;
    1.51 +	uint32_t sctp_multiple_asconfs;
    1.52 +	uint32_t sctp_ecn_enable;
    1.53 +	uint32_t sctp_fr_max_burst_default;
    1.54 +	uint32_t sctp_strict_sacks;
    1.55 +#if !(defined(__FreeBSD__) && __FreeBSD_version >= 800000)
    1.56 +#if !defined(SCTP_WITH_NO_CSUM)
    1.57 +	uint32_t sctp_no_csum_on_loopback;
    1.58 +#endif
    1.59 +#endif
    1.60 +	uint32_t sctp_peer_chunk_oh;
    1.61 +	uint32_t sctp_max_burst_default;
    1.62 +	uint32_t sctp_max_chunks_on_queue;
    1.63 +	uint32_t sctp_hashtblsize;
    1.64 +	uint32_t sctp_pcbtblsize;
    1.65 +	uint32_t sctp_min_split_point;
    1.66 +	uint32_t sctp_chunkscale;
    1.67 +	uint32_t sctp_delayed_sack_time_default;
    1.68 +	uint32_t sctp_sack_freq_default;
    1.69 +	uint32_t sctp_system_free_resc_limit;
    1.70 +	uint32_t sctp_asoc_free_resc_limit;
    1.71 +	uint32_t sctp_heartbeat_interval_default;
    1.72 +	uint32_t sctp_pmtu_raise_time_default;
    1.73 +	uint32_t sctp_shutdown_guard_time_default;
    1.74 +	uint32_t sctp_secret_lifetime_default;
    1.75 +	uint32_t sctp_rto_max_default;
    1.76 +	uint32_t sctp_rto_min_default;
    1.77 +	uint32_t sctp_rto_initial_default;
    1.78 +	uint32_t sctp_init_rto_max_default;
    1.79 +	uint32_t sctp_valid_cookie_life_default;
    1.80 +	uint32_t sctp_init_rtx_max_default;
    1.81 +	uint32_t sctp_assoc_rtx_max_default;
    1.82 +	uint32_t sctp_path_rtx_max_default;
    1.83 +	uint32_t sctp_path_pf_threshold;
    1.84 +	uint32_t sctp_add_more_threshold;
    1.85 +	uint32_t sctp_nr_incoming_streams_default;
    1.86 +	uint32_t sctp_nr_outgoing_streams_default;
    1.87 +	uint32_t sctp_cmt_on_off;
    1.88 +	uint32_t sctp_cmt_use_dac;
    1.89 +	/* EY 5/5/08 - nr_sack flag variable */
    1.90 +	uint32_t sctp_nr_sack_on_off;
    1.91 +	uint32_t sctp_use_cwnd_based_maxburst;
    1.92 +	uint32_t sctp_asconf_auth_nochk;
    1.93 +	uint32_t sctp_auth_disable;
    1.94 +	uint32_t sctp_nat_friendly;
    1.95 +	uint32_t sctp_L2_abc_variable;
    1.96 +	uint32_t sctp_mbuf_threshold_count;
    1.97 +	uint32_t sctp_do_drain;
    1.98 +	uint32_t sctp_hb_maxburst;
    1.99 +	uint32_t sctp_abort_if_one_2_one_hits_limit;
   1.100 +	uint32_t sctp_strict_data_order;
   1.101 +	uint32_t sctp_min_residual;
   1.102 +	uint32_t sctp_max_retran_chunk;
   1.103 +	uint32_t sctp_logging_level;
   1.104 +	/* JRS - Variable for default congestion control module */
   1.105 +	uint32_t sctp_default_cc_module;
   1.106 +	/* RS - Variable for default stream scheduling module */
   1.107 +	uint32_t sctp_default_ss_module;
   1.108 +	uint32_t sctp_default_frag_interleave;
   1.109 +	uint32_t sctp_mobility_base;
   1.110 +	uint32_t sctp_mobility_fasthandoff;
   1.111 +	uint32_t sctp_inits_include_nat_friendly;
   1.112 +	uint32_t sctp_rttvar_bw;
   1.113 +	uint32_t sctp_rttvar_rtt;
   1.114 +	uint32_t sctp_rttvar_eqret;
   1.115 +	uint32_t sctp_steady_step;
   1.116 +	uint32_t sctp_use_dccc_ecn;
   1.117 +#if defined(SCTP_LOCAL_TRACE_BUF)
   1.118 +#if defined(__Windows__)
   1.119 +	struct sctp_log *sctp_log;
   1.120 +#else
   1.121 +	struct sctp_log sctp_log;
   1.122 +#endif
   1.123 +#endif
   1.124 +	uint32_t sctp_udp_tunneling_port;
   1.125 +	uint32_t sctp_enable_sack_immediately;
   1.126 +	uint32_t sctp_vtag_time_wait;
   1.127 +	uint32_t sctp_buffer_splitting;
   1.128 +	uint32_t sctp_initial_cwnd;
   1.129 +	uint32_t sctp_blackhole;
   1.130 +#if defined(SCTP_DEBUG)
   1.131 +	uint32_t sctp_debug_on;
   1.132 +#endif
   1.133 +#if defined(__APPLE__)
   1.134 +	uint32_t sctp_ignore_vmware_interfaces;
   1.135 +	uint32_t sctp_main_timer;
   1.136 +	uint32_t sctp_addr_watchdog_limit;
   1.137 +	uint32_t sctp_vtag_watchdog_limit;
   1.138 +#endif
   1.139 +#if defined(__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
   1.140 +	uint32_t sctp_output_unlocked;
   1.141 +#endif
   1.142 +};
   1.143 +
   1.144 +/*
   1.145 + * limits for the sysctl variables
   1.146 + */
   1.147 +/* maxdgram: Maximum outgoing SCTP buffer size */
   1.148 +#define SCTPCTL_MAXDGRAM_DESC		"Maximum outgoing SCTP buffer size"
   1.149 +#define SCTPCTL_MAXDGRAM_MIN		0
   1.150 +#define SCTPCTL_MAXDGRAM_MAX		0xFFFFFFFF
   1.151 +#define SCTPCTL_MAXDGRAM_DEFAULT	262144	/* 256k */
   1.152 +
   1.153 +/* recvspace: Maximum incoming SCTP buffer size */
   1.154 +#define SCTPCTL_RECVSPACE_DESC		"Maximum incoming SCTP buffer size"
   1.155 +#define SCTPCTL_RECVSPACE_MIN		0
   1.156 +#define SCTPCTL_RECVSPACE_MAX		0xFFFFFFFF
   1.157 +#define SCTPCTL_RECVSPACE_DEFAULT	262144	/* 256k */
   1.158 +
   1.159 +/* autoasconf: Enable SCTP Auto-ASCONF */
   1.160 +#define SCTPCTL_AUTOASCONF_DESC		"Enable SCTP Auto-ASCONF"
   1.161 +#define SCTPCTL_AUTOASCONF_MIN		0
   1.162 +#define SCTPCTL_AUTOASCONF_MAX		1
   1.163 +#define SCTPCTL_AUTOASCONF_DEFAULT	SCTP_DEFAULT_AUTO_ASCONF
   1.164 +
   1.165 +/* autoasconf: Enable SCTP Auto-ASCONF */
   1.166 +#define SCTPCTL_MULTIPLEASCONFS_DESC	"Enable SCTP Muliple-ASCONFs"
   1.167 +#define SCTPCTL_MULTIPLEASCONFS_MIN	0
   1.168 +#define SCTPCTL_MULTIPLEASCONFS_MAX	1
   1.169 +#define SCTPCTL_MULTIPLEASCONFS_DEFAULT	SCTP_DEFAULT_MULTIPLE_ASCONFS
   1.170 +
   1.171 +/* ecn_enable: Enable SCTP ECN */
   1.172 +#define SCTPCTL_ECN_ENABLE_DESC		"Enable SCTP ECN"
   1.173 +#define SCTPCTL_ECN_ENABLE_MIN		0
   1.174 +#define SCTPCTL_ECN_ENABLE_MAX		1
   1.175 +#define SCTPCTL_ECN_ENABLE_DEFAULT	1
   1.176 +
   1.177 +/* strict_sacks: Enable SCTP Strict SACK checking */
   1.178 +#define SCTPCTL_STRICT_SACKS_DESC	"Enable SCTP Strict SACK checking"
   1.179 +#define SCTPCTL_STRICT_SACKS_MIN	0
   1.180 +#define SCTPCTL_STRICT_SACKS_MAX	1
   1.181 +#define SCTPCTL_STRICT_SACKS_DEFAULT	1
   1.182 +
   1.183 +/* loopback_nocsum: Enable NO Csum on packets sent on loopback */
   1.184 +#define SCTPCTL_LOOPBACK_NOCSUM_DESC	"Enable NO Csum on packets sent on loopback"
   1.185 +#define SCTPCTL_LOOPBACK_NOCSUM_MIN	0
   1.186 +#define SCTPCTL_LOOPBACK_NOCSUM_MAX	1
   1.187 +#define SCTPCTL_LOOPBACK_NOCSUM_DEFAULT	1
   1.188 +
   1.189 +/* peer_chkoh: Amount to debit peers rwnd per chunk sent */
   1.190 +#define SCTPCTL_PEER_CHKOH_DESC		"Amount to debit peers rwnd per chunk sent"
   1.191 +#define SCTPCTL_PEER_CHKOH_MIN		0
   1.192 +#define SCTPCTL_PEER_CHKOH_MAX		0xFFFFFFFF
   1.193 +#define SCTPCTL_PEER_CHKOH_DEFAULT	256
   1.194 +
   1.195 +/* maxburst: Default max burst for sctp endpoints */
   1.196 +#define SCTPCTL_MAXBURST_DESC		"Default max burst for sctp endpoints"
   1.197 +#define SCTPCTL_MAXBURST_MIN		0
   1.198 +#define SCTPCTL_MAXBURST_MAX		0xFFFFFFFF
   1.199 +#define SCTPCTL_MAXBURST_DEFAULT	SCTP_DEF_MAX_BURST
   1.200 +
   1.201 +/* fr_maxburst: Default max burst for sctp endpoints when fast retransmitting */
   1.202 +#define SCTPCTL_FRMAXBURST_DESC		"Default fr max burst for sctp endpoints"
   1.203 +#define SCTPCTL_FRMAXBURST_MIN		0
   1.204 +#define SCTPCTL_FRMAXBURST_MAX		0xFFFFFFFF
   1.205 +#define SCTPCTL_FRMAXBURST_DEFAULT	SCTP_DEF_FRMAX_BURST
   1.206 +
   1.207 +
   1.208 +/* maxchunks: Default max chunks on queue per asoc */
   1.209 +#define SCTPCTL_MAXCHUNKS_DESC		"Default max chunks on queue per asoc"
   1.210 +#define SCTPCTL_MAXCHUNKS_MIN		0
   1.211 +#define SCTPCTL_MAXCHUNKS_MAX		0xFFFFFFFF
   1.212 +#define SCTPCTL_MAXCHUNKS_DEFAULT	SCTP_ASOC_MAX_CHUNKS_ON_QUEUE
   1.213 +
   1.214 +/* tcbhashsize: Tunable for Hash table sizes */
   1.215 +#define SCTPCTL_TCBHASHSIZE_DESC	"Tunable for TCB hash table sizes"
   1.216 +#define SCTPCTL_TCBHASHSIZE_MIN		1
   1.217 +#define SCTPCTL_TCBHASHSIZE_MAX		0xFFFFFFFF
   1.218 +#define SCTPCTL_TCBHASHSIZE_DEFAULT	SCTP_TCBHASHSIZE
   1.219 +
   1.220 +/* pcbhashsize: Tunable for PCB Hash table sizes */
   1.221 +#define SCTPCTL_PCBHASHSIZE_DESC	"Tunable for PCB hash table sizes"
   1.222 +#define SCTPCTL_PCBHASHSIZE_MIN		1
   1.223 +#define SCTPCTL_PCBHASHSIZE_MAX		0xFFFFFFFF
   1.224 +#define SCTPCTL_PCBHASHSIZE_DEFAULT	SCTP_PCBHASHSIZE
   1.225 +
   1.226 +/* min_split_point: Minimum size when splitting a chunk */
   1.227 +#define SCTPCTL_MIN_SPLIT_POINT_DESC	"Minimum size when splitting a chunk"
   1.228 +#define SCTPCTL_MIN_SPLIT_POINT_MIN	0
   1.229 +#define SCTPCTL_MIN_SPLIT_POINT_MAX	0xFFFFFFFF
   1.230 +#define SCTPCTL_MIN_SPLIT_POINT_DEFAULT	SCTP_DEFAULT_SPLIT_POINT_MIN
   1.231 +
   1.232 +/* chunkscale: Tunable for Scaling of number of chunks and messages */
   1.233 +#define SCTPCTL_CHUNKSCALE_DESC		"Tunable for Scaling of number of chunks and messages"
   1.234 +#define SCTPCTL_CHUNKSCALE_MIN		1
   1.235 +#define SCTPCTL_CHUNKSCALE_MAX		0xFFFFFFFF
   1.236 +#define SCTPCTL_CHUNKSCALE_DEFAULT	SCTP_CHUNKQUEUE_SCALE
   1.237 +
   1.238 +/* delayed_sack_time: Default delayed SACK timer in ms */
   1.239 +#define SCTPCTL_DELAYED_SACK_TIME_DESC	"Default delayed SACK timer in ms"
   1.240 +#define SCTPCTL_DELAYED_SACK_TIME_MIN	0
   1.241 +#define SCTPCTL_DELAYED_SACK_TIME_MAX	0xFFFFFFFF
   1.242 +#define SCTPCTL_DELAYED_SACK_TIME_DEFAULT	SCTP_RECV_MSEC
   1.243 +
   1.244 +/* sack_freq: Default SACK frequency */
   1.245 +#define SCTPCTL_SACK_FREQ_DESC		"Default SACK frequency"
   1.246 +#define SCTPCTL_SACK_FREQ_MIN		0
   1.247 +#define SCTPCTL_SACK_FREQ_MAX		0xFFFFFFFF
   1.248 +#define SCTPCTL_SACK_FREQ_DEFAULT	SCTP_DEFAULT_SACK_FREQ
   1.249 +
   1.250 +/* sys_resource: Max number of cached resources in the system */
   1.251 +#define SCTPCTL_SYS_RESOURCE_DESC	"Max number of cached resources in the system"
   1.252 +#define SCTPCTL_SYS_RESOURCE_MIN	0
   1.253 +#define SCTPCTL_SYS_RESOURCE_MAX	0xFFFFFFFF
   1.254 +#define SCTPCTL_SYS_RESOURCE_DEFAULT	SCTP_DEF_SYSTEM_RESC_LIMIT
   1.255 +
   1.256 +/* asoc_resource: Max number of cached resources in an asoc */
   1.257 +#define SCTPCTL_ASOC_RESOURCE_DESC	"Max number of cached resources in an asoc"
   1.258 +#define SCTPCTL_ASOC_RESOURCE_MIN	0
   1.259 +#define SCTPCTL_ASOC_RESOURCE_MAX	0xFFFFFFFF
   1.260 +#define SCTPCTL_ASOC_RESOURCE_DEFAULT	SCTP_DEF_ASOC_RESC_LIMIT
   1.261 +
   1.262 +/* heartbeat_interval: Default heartbeat interval in ms */
   1.263 +#define SCTPCTL_HEARTBEAT_INTERVAL_DESC	"Default heartbeat interval in ms"
   1.264 +#define SCTPCTL_HEARTBEAT_INTERVAL_MIN	0
   1.265 +#define SCTPCTL_HEARTBEAT_INTERVAL_MAX	0xFFFFFFFF
   1.266 +#define SCTPCTL_HEARTBEAT_INTERVAL_DEFAULT	SCTP_HB_DEFAULT_MSEC
   1.267 +
   1.268 +/* pmtu_raise_time: Default PMTU raise timer in seconds */
   1.269 +#define SCTPCTL_PMTU_RAISE_TIME_DESC	"Default PMTU raise timer in seconds"
   1.270 +#define SCTPCTL_PMTU_RAISE_TIME_MIN	0
   1.271 +#define SCTPCTL_PMTU_RAISE_TIME_MAX	0xFFFFFFFF
   1.272 +#define SCTPCTL_PMTU_RAISE_TIME_DEFAULT	SCTP_DEF_PMTU_RAISE_SEC
   1.273 +
   1.274 +/* shutdown_guard_time: Default shutdown guard timer in seconds */
   1.275 +#define SCTPCTL_SHUTDOWN_GUARD_TIME_DESC	"Default shutdown guard timer in seconds"
   1.276 +#define SCTPCTL_SHUTDOWN_GUARD_TIME_MIN		0
   1.277 +#define SCTPCTL_SHUTDOWN_GUARD_TIME_MAX		0xFFFFFFFF
   1.278 +#define SCTPCTL_SHUTDOWN_GUARD_TIME_DEFAULT	SCTP_DEF_MAX_SHUTDOWN_SEC
   1.279 +
   1.280 +/* secret_lifetime: Default secret lifetime in seconds */
   1.281 +#define SCTPCTL_SECRET_LIFETIME_DESC	"Default secret lifetime in seconds"
   1.282 +#define SCTPCTL_SECRET_LIFETIME_MIN	0
   1.283 +#define SCTPCTL_SECRET_LIFETIME_MAX	0xFFFFFFFF
   1.284 +#define SCTPCTL_SECRET_LIFETIME_DEFAULT	SCTP_DEFAULT_SECRET_LIFE_SEC
   1.285 +
   1.286 +/* rto_max: Default maximum retransmission timeout in ms */
   1.287 +#define SCTPCTL_RTO_MAX_DESC		"Default maximum retransmission timeout in ms"
   1.288 +#define SCTPCTL_RTO_MAX_MIN		0
   1.289 +#define SCTPCTL_RTO_MAX_MAX		0xFFFFFFFF
   1.290 +#define SCTPCTL_RTO_MAX_DEFAULT		SCTP_RTO_UPPER_BOUND
   1.291 +
   1.292 +/* rto_min: Default minimum retransmission timeout in ms */
   1.293 +#define SCTPCTL_RTO_MIN_DESC		"Default minimum retransmission timeout in ms"
   1.294 +#define SCTPCTL_RTO_MIN_MIN		0
   1.295 +#define SCTPCTL_RTO_MIN_MAX		0xFFFFFFFF
   1.296 +#define SCTPCTL_RTO_MIN_DEFAULT		SCTP_RTO_LOWER_BOUND
   1.297 +
   1.298 +/* rto_initial: Default initial retransmission timeout in ms */
   1.299 +#define SCTPCTL_RTO_INITIAL_DESC	"Default initial retransmission timeout in ms"
   1.300 +#define SCTPCTL_RTO_INITIAL_MIN		0
   1.301 +#define SCTPCTL_RTO_INITIAL_MAX		0xFFFFFFFF
   1.302 +#define SCTPCTL_RTO_INITIAL_DEFAULT	SCTP_RTO_INITIAL
   1.303 +
   1.304 +/* init_rto_max: Default maximum retransmission timeout during association setup in ms */
   1.305 +#define SCTPCTL_INIT_RTO_MAX_DESC	"Default maximum retransmission timeout during association setup in ms"
   1.306 +#define SCTPCTL_INIT_RTO_MAX_MIN	0
   1.307 +#define SCTPCTL_INIT_RTO_MAX_MAX	0xFFFFFFFF
   1.308 +#define SCTPCTL_INIT_RTO_MAX_DEFAULT	SCTP_RTO_UPPER_BOUND
   1.309 +
   1.310 +/* valid_cookie_life: Default cookie lifetime in sec */
   1.311 +#define SCTPCTL_VALID_COOKIE_LIFE_DESC	"Default cookie lifetime in seconds"
   1.312 +#define SCTPCTL_VALID_COOKIE_LIFE_MIN	0
   1.313 +#define SCTPCTL_VALID_COOKIE_LIFE_MAX	0xFFFFFFFF
   1.314 +#define SCTPCTL_VALID_COOKIE_LIFE_DEFAULT	SCTP_DEFAULT_COOKIE_LIFE
   1.315 +
   1.316 +/* init_rtx_max: Default maximum number of retransmission for INIT chunks */
   1.317 +#define SCTPCTL_INIT_RTX_MAX_DESC	"Default maximum number of retransmission for INIT chunks"
   1.318 +#define SCTPCTL_INIT_RTX_MAX_MIN	0
   1.319 +#define SCTPCTL_INIT_RTX_MAX_MAX	0xFFFFFFFF
   1.320 +#define SCTPCTL_INIT_RTX_MAX_DEFAULT	SCTP_DEF_MAX_INIT
   1.321 +
   1.322 +/* assoc_rtx_max: Default maximum number of retransmissions per association */
   1.323 +#define SCTPCTL_ASSOC_RTX_MAX_DESC	"Default maximum number of retransmissions per association"
   1.324 +#define SCTPCTL_ASSOC_RTX_MAX_MIN	0
   1.325 +#define SCTPCTL_ASSOC_RTX_MAX_MAX	0xFFFFFFFF
   1.326 +#define SCTPCTL_ASSOC_RTX_MAX_DEFAULT	SCTP_DEF_MAX_SEND
   1.327 +
   1.328 +/* path_rtx_max: Default maximum of retransmissions per path */
   1.329 +#define SCTPCTL_PATH_RTX_MAX_DESC	"Default maximum of retransmissions per path"
   1.330 +#define SCTPCTL_PATH_RTX_MAX_MIN	0
   1.331 +#define SCTPCTL_PATH_RTX_MAX_MAX	0xFFFFFFFF
   1.332 +#define SCTPCTL_PATH_RTX_MAX_DEFAULT	SCTP_DEF_MAX_PATH_RTX
   1.333 +
   1.334 +/* path_pf_threshold: threshold for considering the path potentially failed */
   1.335 +#define SCTPCTL_PATH_PF_THRESHOLD_DESC		"Default potentially failed threshold"
   1.336 +#define SCTPCTL_PATH_PF_THRESHOLD_MIN		0
   1.337 +#define SCTPCTL_PATH_PF_THRESHOLD_MAX		0xFFFF
   1.338 +#define SCTPCTL_PATH_PF_THRESHOLD_DEFAULT	SCTPCTL_PATH_PF_THRESHOLD_MAX
   1.339 +
   1.340 +/* add_more_on_output: When space-wise is it worthwhile to try to add more to a socket send buffer */
   1.341 +#define SCTPCTL_ADD_MORE_ON_OUTPUT_DESC	"When space-wise is it worthwhile to try to add more to a socket send buffer"
   1.342 +#define SCTPCTL_ADD_MORE_ON_OUTPUT_MIN	0
   1.343 +#define SCTPCTL_ADD_MORE_ON_OUTPUT_MAX	0xFFFFFFFF
   1.344 +#define SCTPCTL_ADD_MORE_ON_OUTPUT_DEFAULT SCTP_DEFAULT_ADD_MORE
   1.345 +
   1.346 +/* incoming_streams: Default number of incoming streams */
   1.347 +#define SCTPCTL_INCOMING_STREAMS_DESC	"Default number of incoming streams"
   1.348 +#define SCTPCTL_INCOMING_STREAMS_MIN	1
   1.349 +#define SCTPCTL_INCOMING_STREAMS_MAX	65535
   1.350 +#define SCTPCTL_INCOMING_STREAMS_DEFAULT SCTP_ISTREAM_INITIAL
   1.351 +
   1.352 +/* outgoing_streams: Default number of outgoing streams */
   1.353 +#define SCTPCTL_OUTGOING_STREAMS_DESC	"Default number of outgoing streams"
   1.354 +#define SCTPCTL_OUTGOING_STREAMS_MIN	1
   1.355 +#define SCTPCTL_OUTGOING_STREAMS_MAX	65535
   1.356 +#define SCTPCTL_OUTGOING_STREAMS_DEFAULT SCTP_OSTREAM_INITIAL
   1.357 +
   1.358 +/* cmt_on_off: CMT on/off flag */
   1.359 +#define SCTPCTL_CMT_ON_OFF_DESC		"CMT settings"
   1.360 +#define SCTPCTL_CMT_ON_OFF_MIN		SCTP_CMT_OFF
   1.361 +#define SCTPCTL_CMT_ON_OFF_MAX		SCTP_CMT_MAX
   1.362 +#define SCTPCTL_CMT_ON_OFF_DEFAULT	SCTP_CMT_OFF
   1.363 +
   1.364 +/* EY - nr_sack_on_off: NR_SACK on/off flag */
   1.365 +#define SCTPCTL_NR_SACK_ON_OFF_DESC	"NR_SACK on/off flag"
   1.366 +#define SCTPCTL_NR_SACK_ON_OFF_MIN	0
   1.367 +#define SCTPCTL_NR_SACK_ON_OFF_MAX	1
   1.368 +#define SCTPCTL_NR_SACK_ON_OFF_DEFAULT	0
   1.369 +
   1.370 +/* cmt_use_dac: CMT DAC on/off flag */
   1.371 +#define SCTPCTL_CMT_USE_DAC_DESC	"CMT DAC on/off flag"
   1.372 +#define SCTPCTL_CMT_USE_DAC_MIN		0
   1.373 +#define SCTPCTL_CMT_USE_DAC_MAX		1
   1.374 +#define SCTPCTL_CMT_USE_DAC_DEFAULT    	0
   1.375 +
   1.376 +/* cwnd_maxburst: Use a CWND adjusting maxburst */
   1.377 +#define SCTPCTL_CWND_MAXBURST_DESC	"Use a CWND adjusting maxburst"
   1.378 +#define SCTPCTL_CWND_MAXBURST_MIN	0
   1.379 +#define SCTPCTL_CWND_MAXBURST_MAX	1
   1.380 +#define SCTPCTL_CWND_MAXBURST_DEFAULT	1
   1.381 +
   1.382 +/* asconf_auth_nochk: Disable SCTP ASCONF AUTH requirement */
   1.383 +#define SCTPCTL_ASCONF_AUTH_NOCHK_DESC	"Disable SCTP ASCONF AUTH requirement"
   1.384 +#define SCTPCTL_ASCONF_AUTH_NOCHK_MIN	0
   1.385 +#define SCTPCTL_ASCONF_AUTH_NOCHK_MAX	1
   1.386 +#define SCTPCTL_ASCONF_AUTH_NOCHK_DEFAULT	0
   1.387 +
   1.388 +/* auth_disable: Disable SCTP AUTH function */
   1.389 +#define SCTPCTL_AUTH_DISABLE_DESC	"Disable SCTP AUTH function"
   1.390 +#define SCTPCTL_AUTH_DISABLE_MIN	0
   1.391 +#define SCTPCTL_AUTH_DISABLE_MAX	1
   1.392 +#define SCTPCTL_AUTH_DISABLE_DEFAULT	0
   1.393 +
   1.394 +/* nat_friendly: SCTP NAT friendly operation */
   1.395 +#define SCTPCTL_NAT_FRIENDLY_DESC	"SCTP NAT friendly operation"
   1.396 +#define SCTPCTL_NAT_FRIENDLY_MIN	0
   1.397 +#define SCTPCTL_NAT_FRIENDLY_MAX	1
   1.398 +#define SCTPCTL_NAT_FRIENDLY_DEFAULT	1
   1.399 +
   1.400 +/* abc_l_var: SCTP ABC max increase per SACK (L) */
   1.401 +#define SCTPCTL_ABC_L_VAR_DESC		"SCTP ABC max increase per SACK (L)"
   1.402 +#define SCTPCTL_ABC_L_VAR_MIN		0
   1.403 +#define SCTPCTL_ABC_L_VAR_MAX		0xFFFFFFFF
   1.404 +#define SCTPCTL_ABC_L_VAR_DEFAULT	2
   1.405 +
   1.406 +/* max_chained_mbufs: Default max number of small mbufs on a chain */
   1.407 +#define SCTPCTL_MAX_CHAINED_MBUFS_DESC	"Default max number of small mbufs on a chain"
   1.408 +#define SCTPCTL_MAX_CHAINED_MBUFS_MIN	0
   1.409 +#define SCTPCTL_MAX_CHAINED_MBUFS_MAX	0xFFFFFFFF
   1.410 +#define SCTPCTL_MAX_CHAINED_MBUFS_DEFAULT	SCTP_DEFAULT_MBUFS_IN_CHAIN
   1.411 +
   1.412 +/* do_sctp_drain: Should SCTP respond to the drain calls */
   1.413 +#define SCTPCTL_DO_SCTP_DRAIN_DESC	"Should SCTP respond to the drain calls"
   1.414 +#define SCTPCTL_DO_SCTP_DRAIN_MIN	0
   1.415 +#define SCTPCTL_DO_SCTP_DRAIN_MAX	1
   1.416 +#define SCTPCTL_DO_SCTP_DRAIN_DEFAULT	1
   1.417 +
   1.418 +/* hb_max_burst: Confirmation Heartbeat max burst? */
   1.419 +#define SCTPCTL_HB_MAX_BURST_DESC	"Confirmation Heartbeat max burst"
   1.420 +#define SCTPCTL_HB_MAX_BURST_MIN	1
   1.421 +#define SCTPCTL_HB_MAX_BURST_MAX	0xFFFFFFFF
   1.422 +#define SCTPCTL_HB_MAX_BURST_DEFAULT	SCTP_DEF_HBMAX_BURST
   1.423 +
   1.424 +/* abort_at_limit: When one-2-one hits qlimit abort */
   1.425 +#define SCTPCTL_ABORT_AT_LIMIT_DESC	"When one-2-one hits qlimit abort"
   1.426 +#define SCTPCTL_ABORT_AT_LIMIT_MIN	0
   1.427 +#define SCTPCTL_ABORT_AT_LIMIT_MAX	1
   1.428 +#define SCTPCTL_ABORT_AT_LIMIT_DEFAULT	0
   1.429 +
   1.430 +/* strict_data_order: Enforce strict data ordering, abort if control inside data */
   1.431 +#define SCTPCTL_STRICT_DATA_ORDER_DESC	"Enforce strict data ordering, abort if control inside data"
   1.432 +#define SCTPCTL_STRICT_DATA_ORDER_MIN	0
   1.433 +#define SCTPCTL_STRICT_DATA_ORDER_MAX	1
   1.434 +#define SCTPCTL_STRICT_DATA_ORDER_DEFAULT	0
   1.435 +
   1.436 +/* min_residual: min residual in a data fragment leftover */
   1.437 +#define SCTPCTL_MIN_RESIDUAL_DESC	"Minimum residual data chunk in second part of split"
   1.438 +#define SCTPCTL_MIN_RESIDUAL_MIN	20
   1.439 +#define SCTPCTL_MIN_RESIDUAL_MAX	65535
   1.440 +#define SCTPCTL_MIN_RESIDUAL_DEFAULT	1452
   1.441 +
   1.442 +/* max_retran_chunk: max chunk retransmissions */
   1.443 +#define SCTPCTL_MAX_RETRAN_CHUNK_DESC	"Maximum times an unlucky chunk can be retran'd before assoc abort"
   1.444 +#define SCTPCTL_MAX_RETRAN_CHUNK_MIN	0
   1.445 +#define SCTPCTL_MAX_RETRAN_CHUNK_MAX	65535
   1.446 +#define SCTPCTL_MAX_RETRAN_CHUNK_DEFAULT	30
   1.447 +
   1.448 +/* sctp_logging: This gives us logging when the options are enabled */
   1.449 +#define SCTPCTL_LOGGING_LEVEL_DESC	"Ltrace/KTR trace logging level"
   1.450 +#define SCTPCTL_LOGGING_LEVEL_MIN	0
   1.451 +#define SCTPCTL_LOGGING_LEVEL_MAX	0xffffffff
   1.452 +#define SCTPCTL_LOGGING_LEVEL_DEFAULT	0
   1.453 +
   1.454 +/* JRS - default congestion control module sysctl */
   1.455 +#define SCTPCTL_DEFAULT_CC_MODULE_DESC		"Default congestion control module"
   1.456 +#define SCTPCTL_DEFAULT_CC_MODULE_MIN		0
   1.457 +#define SCTPCTL_DEFAULT_CC_MODULE_MAX		2
   1.458 +#define SCTPCTL_DEFAULT_CC_MODULE_DEFAULT	0
   1.459 +
   1.460 +/* RS - default stream scheduling module sysctl */
   1.461 +#define SCTPCTL_DEFAULT_SS_MODULE_DESC		"Default stream scheduling module"
   1.462 +#define SCTPCTL_DEFAULT_SS_MODULE_MIN		0
   1.463 +#define SCTPCTL_DEFAULT_SS_MODULE_MAX		5
   1.464 +#define SCTPCTL_DEFAULT_SS_MODULE_DEFAULT	0
   1.465 +
   1.466 +/* RRS - default fragment interleave */
   1.467 +#define SCTPCTL_DEFAULT_FRAG_INTERLEAVE_DESC	"Default fragment interleave level"
   1.468 +#define SCTPCTL_DEFAULT_FRAG_INTERLEAVE_MIN	0
   1.469 +#define SCTPCTL_DEFAULT_FRAG_INTERLEAVE_MAX	2
   1.470 +#define SCTPCTL_DEFAULT_FRAG_INTERLEAVE_DEFAULT	1
   1.471 +
   1.472 +/* mobility_base: Enable SCTP mobility support */
   1.473 +#define SCTPCTL_MOBILITY_BASE_DESC	"Enable SCTP base mobility"
   1.474 +#define SCTPCTL_MOBILITY_BASE_MIN	0
   1.475 +#define SCTPCTL_MOBILITY_BASE_MAX	1
   1.476 +#define SCTPCTL_MOBILITY_BASE_DEFAULT	SCTP_DEFAULT_MOBILITY_BASE
   1.477 +
   1.478 +/* mobility_fasthandoff: Enable SCTP fast handoff support */
   1.479 +#define SCTPCTL_MOBILITY_FASTHANDOFF_DESC	"Enable SCTP fast handoff"
   1.480 +#define SCTPCTL_MOBILITY_FASTHANDOFF_MIN	0
   1.481 +#define SCTPCTL_MOBILITY_FASTHANDOFF_MAX	1
   1.482 +#define SCTPCTL_MOBILITY_FASTHANDOFF_DEFAULT	SCTP_DEFAULT_MOBILITY_FASTHANDOFF
   1.483 +
   1.484 +/* Enable SCTP/UDP tunneling port */
   1.485 +#define SCTPCTL_UDP_TUNNELING_PORT_DESC		"Set the SCTP/UDP tunneling port"
   1.486 +#define SCTPCTL_UDP_TUNNELING_PORT_MIN		0
   1.487 +#define SCTPCTL_UDP_TUNNELING_PORT_MAX		65535
   1.488 +#define SCTPCTL_UDP_TUNNELING_PORT_DEFAULT	SCTP_OVER_UDP_TUNNELING_PORT
   1.489 +
   1.490 +/* Enable sending of the SACK-IMMEDIATELY bit */
   1.491 +#define SCTPCTL_SACK_IMMEDIATELY_ENABLE_DESC	"Enable sending of the SACK-IMMEDIATELY-bit."
   1.492 +#define SCTPCTL_SACK_IMMEDIATELY_ENABLE_MIN	0
   1.493 +#define SCTPCTL_SACK_IMMEDIATELY_ENABLE_MAX	1
   1.494 +#define SCTPCTL_SACK_IMMEDIATELY_ENABLE_DEFAULT	SCTPCTL_SACK_IMMEDIATELY_ENABLE_MIN
   1.495 +
   1.496 +/* Enable sending of the NAT-FRIENDLY message */
   1.497 +#define SCTPCTL_NAT_FRIENDLY_INITS_DESC	"Enable sending of the nat-friendly SCTP option on INITs."
   1.498 +#define SCTPCTL_NAT_FRIENDLY_INITS_MIN	0
   1.499 +#define SCTPCTL_NAT_FRIENDLY_INITS_MAX	1
   1.500 +#define SCTPCTL_NAT_FRIENDLY_INITS_DEFAULT	SCTPCTL_NAT_FRIENDLY_INITS_MIN
   1.501 +
   1.502 +/* Vtag time wait in seconds */
   1.503 +#define SCTPCTL_TIME_WAIT_DESC	"Vtag time wait time in seconds, 0 disables it."
   1.504 +#define SCTPCTL_TIME_WAIT_MIN	0
   1.505 +#define SCTPCTL_TIME_WAIT_MAX	0xffffffff
   1.506 +#define SCTPCTL_TIME_WAIT_DEFAULT	SCTP_TIME_WAIT
   1.507 +
   1.508 +/* Enable Send/Receive buffer splitting */
   1.509 +#define SCTPCTL_BUFFER_SPLITTING_DESC		"Enable send/receive buffer splitting."
   1.510 +#define SCTPCTL_BUFFER_SPLITTING_MIN		0
   1.511 +#define SCTPCTL_BUFFER_SPLITTING_MAX		0x3
   1.512 +#define SCTPCTL_BUFFER_SPLITTING_DEFAULT	SCTPCTL_BUFFER_SPLITTING_MIN
   1.513 +
   1.514 +/* Initial congestion window in MTU */
   1.515 +#define SCTPCTL_INITIAL_CWND_DESC	"Initial congestion window in MTUs"
   1.516 +#define SCTPCTL_INITIAL_CWND_MIN	0
   1.517 +#define SCTPCTL_INITIAL_CWND_MAX	0xffffffff
   1.518 +#define SCTPCTL_INITIAL_CWND_DEFAULT	3
   1.519 +
   1.520 +/* rttvar smooth avg for bw calc  */
   1.521 +#define SCTPCTL_RTTVAR_BW_DESC	"Shift amount for bw smoothing on rtt calc"
   1.522 +#define SCTPCTL_RTTVAR_BW_MIN	0
   1.523 +#define SCTPCTL_RTTVAR_BW_MAX	32
   1.524 +#define SCTPCTL_RTTVAR_BW_DEFAULT	4
   1.525 +
   1.526 +/* rttvar smooth avg for bw calc  */
   1.527 +#define SCTPCTL_RTTVAR_RTT_DESC	"Shift amount for rtt smoothing on rtt calc"
   1.528 +#define SCTPCTL_RTTVAR_RTT_MIN	0
   1.529 +#define SCTPCTL_RTTVAR_RTT_MAX	32
   1.530 +#define SCTPCTL_RTTVAR_RTT_DEFAULT	5
   1.531 +
   1.532 +#define SCTPCTL_RTTVAR_EQRET_DESC	"What to return when rtt and bw are unchanged"
   1.533 +#define SCTPCTL_RTTVAR_EQRET_MIN	0
   1.534 +#define SCTPCTL_RTTVAR_EQRET_MAX	1
   1.535 +#define SCTPCTL_RTTVAR_EQRET_DEFAULT	0
   1.536 +
   1.537 +#define SCTPCTL_RTTVAR_STEADYS_DESC	"How many the sames it takes to try step down of cwnd"
   1.538 +#define SCTPCTL_RTTVAR_STEADYS_MIN	0
   1.539 +#define SCTPCTL_RTTVAR_STEADYS_MAX	0xFFFF
   1.540 +#define SCTPCTL_RTTVAR_STEADYS_DEFAULT	20 /* 0 means disable feature */
   1.541 +
   1.542 +#define SCTPCTL_RTTVAR_DCCCECN_DESC	"Enable for RTCC CC datacenter ECN"
   1.543 +#define SCTPCTL_RTTVAR_DCCCECN_MIN	0
   1.544 +#define SCTPCTL_RTTVAR_DCCCECN_MAX	1
   1.545 +#define SCTPCTL_RTTVAR_DCCCECN_DEFAULT	1 /* 0 means disable feature */
   1.546 +
   1.547 +#define SCTPCTL_BLACKHOLE_DESC		"Enable SCTP blackholing"
   1.548 +#define SCTPCTL_BLACKHOLE_MIN		0
   1.549 +#define SCTPCTL_BLACKHOLE_MAX		2
   1.550 +#define SCTPCTL_BLACKHOLE_DEFAULT	SCTPCTL_BLACKHOLE_MIN
   1.551 +
   1.552 +#if defined(SCTP_DEBUG)
   1.553 +/* debug: Configure debug output */
   1.554 +#define SCTPCTL_DEBUG_DESC	"Configure debug output"
   1.555 +#define SCTPCTL_DEBUG_MIN	0
   1.556 +#define SCTPCTL_DEBUG_MAX	0xFFFFFFFF
   1.557 +#define SCTPCTL_DEBUG_DEFAULT	0
   1.558 +#endif
   1.559 +
   1.560 +#if defined(__APPLE__)
   1.561 +#define SCTPCTL_MAIN_TIMER_DESC		"Main timer interval in ms"
   1.562 +#define SCTPCTL_MAIN_TIMER_MIN		1
   1.563 +#define SCTPCTL_MAIN_TIMER_MAX		0xFFFFFFFF
   1.564 +#define SCTPCTL_MAIN_TIMER_DEFAULT	10
   1.565 +
   1.566 +#define SCTPCTL_IGNORE_VMWARE_INTERFACES_DESC		"Ignore VMware Interfaces"
   1.567 +#define SCTPCTL_IGNORE_VMWARE_INTERFACES_MIN		0
   1.568 +#define SCTPCTL_IGNORE_VMWARE_INTERFACES_MAX		1
   1.569 +#define SCTPCTL_IGNORE_VMWARE_INTERFACES_DEFAULT	SCTPCTL_IGNORE_VMWARE_INTERFACES_MAX
   1.570 +#endif
   1.571 +
   1.572 +#if defined(__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
   1.573 +#define SCTPCTL_OUTPUT_UNLOCKED_DESC	"Unlock socket when sending packets down to IP."
   1.574 +#define SCTPCTL_OUTPUT_UNLOCKED_MIN	0
   1.575 +#define SCTPCTL_OUTPUT_UNLOCKED_MAX	1
   1.576 +#define SCTPCTL_OUTPUT_UNLOCKED_DEFAULT	SCTPCTL_OUTPUT_UNLOCKED_MIN
   1.577 +#endif
   1.578 +
   1.579 +#if defined(__APPLE__)
   1.580 +#define	SCTPCTL_ADDR_WATCHDOG_LIMIT_MIN	0
   1.581 +#define	SCTPCTL_ADDR_WATCHDOG_LIMIT_MAX	0xFFFFFFFF
   1.582 +#define	SCTPCTL_ADDR_WATCHDOG_LIMIT_DEFAULT	SCTPCTL_ADDR_WATCHDOG_LIMIT_MIN
   1.583 +
   1.584 +#define	SCTPCTL_VTAG_WATCHDOG_LIMIT_MIN	0
   1.585 +#define	SCTPCTL_VTAG_WATCHDOG_LIMIT_MAX	0xFFFFFFFF
   1.586 +#define	SCTPCTL_VTAG_WATCHDOG_LIMIT_DEFAULT	SCTPCTL_VTAG_WATCHDOG_LIMIT_MIN
   1.587 +#endif
   1.588 +
   1.589 +#if defined(_KERNEL) || defined(__Userspace__)
   1.590 +#if defined(__FreeBSD__) || defined(__APPLE__) || defined(__Userspace__)
   1.591 +#if defined(SYSCTL_DECL)
   1.592 +SYSCTL_DECL(_net_inet_sctp);
   1.593 +#endif
   1.594 +#endif
   1.595 +
   1.596 +void sctp_init_sysctls(void);
   1.597 +#if defined(__Windows__)
   1.598 +void sctp_finish_sysctls(void);
   1.599 +#endif
   1.600 +
   1.601 +#endif /* _KERNEL */
   1.602 +#endif /* __sctp_sysctl_h__ */

mercurial