michael@0: /*- michael@0: * Copyright (c) 2007, by Cisco Systems, Inc. All rights reserved. michael@0: * Copyright (c) 2008-2012, by Randall Stewart. All rights reserved. michael@0: * Copyright (c) 2008-2012, by Michael Tuexen. All rights reserved. michael@0: * michael@0: * Redistribution and use in source and binary forms, with or without michael@0: * modification, are permitted provided that the following conditions are met: michael@0: * michael@0: * a) Redistributions of source code must retain the above copyright notice, michael@0: * this list of conditions and the following disclaimer. michael@0: * michael@0: * b) Redistributions in binary form must reproduce the above copyright michael@0: * notice, this list of conditions and the following disclaimer in michael@0: * the documentation and/or other materials provided with the distribution. michael@0: * michael@0: * c) Neither the name of Cisco Systems, Inc. nor the names of its michael@0: * contributors may be used to endorse or promote products derived michael@0: * from this software without specific prior written permission. michael@0: * michael@0: * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS michael@0: * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, michael@0: * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE michael@0: * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE michael@0: * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR michael@0: * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF michael@0: * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS michael@0: * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN michael@0: * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) michael@0: * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF michael@0: * THE POSSIBILITY OF SUCH DAMAGE. michael@0: */ michael@0: michael@0: #ifdef __FreeBSD__ michael@0: #include michael@0: __FBSDID("$FreeBSD: head/sys/netinet/sctp_sysctl.h 252779 2013-07-05 10:08:49Z tuexen $"); michael@0: #endif michael@0: michael@0: #ifndef _NETINET_SCTP_SYSCTL_H_ michael@0: #define _NETINET_SCTP_SYSCTL_H_ michael@0: michael@0: #include michael@0: #include michael@0: michael@0: struct sctp_sysctl { michael@0: uint32_t sctp_sendspace; michael@0: uint32_t sctp_recvspace; michael@0: uint32_t sctp_auto_asconf; michael@0: uint32_t sctp_multiple_asconfs; michael@0: uint32_t sctp_ecn_enable; michael@0: uint32_t sctp_fr_max_burst_default; michael@0: uint32_t sctp_strict_sacks; michael@0: #if !(defined(__FreeBSD__) && __FreeBSD_version >= 800000) michael@0: #if !defined(SCTP_WITH_NO_CSUM) michael@0: uint32_t sctp_no_csum_on_loopback; michael@0: #endif michael@0: #endif michael@0: uint32_t sctp_peer_chunk_oh; michael@0: uint32_t sctp_max_burst_default; michael@0: uint32_t sctp_max_chunks_on_queue; michael@0: uint32_t sctp_hashtblsize; michael@0: uint32_t sctp_pcbtblsize; michael@0: uint32_t sctp_min_split_point; michael@0: uint32_t sctp_chunkscale; michael@0: uint32_t sctp_delayed_sack_time_default; michael@0: uint32_t sctp_sack_freq_default; michael@0: uint32_t sctp_system_free_resc_limit; michael@0: uint32_t sctp_asoc_free_resc_limit; michael@0: uint32_t sctp_heartbeat_interval_default; michael@0: uint32_t sctp_pmtu_raise_time_default; michael@0: uint32_t sctp_shutdown_guard_time_default; michael@0: uint32_t sctp_secret_lifetime_default; michael@0: uint32_t sctp_rto_max_default; michael@0: uint32_t sctp_rto_min_default; michael@0: uint32_t sctp_rto_initial_default; michael@0: uint32_t sctp_init_rto_max_default; michael@0: uint32_t sctp_valid_cookie_life_default; michael@0: uint32_t sctp_init_rtx_max_default; michael@0: uint32_t sctp_assoc_rtx_max_default; michael@0: uint32_t sctp_path_rtx_max_default; michael@0: uint32_t sctp_path_pf_threshold; michael@0: uint32_t sctp_add_more_threshold; michael@0: uint32_t sctp_nr_incoming_streams_default; michael@0: uint32_t sctp_nr_outgoing_streams_default; michael@0: uint32_t sctp_cmt_on_off; michael@0: uint32_t sctp_cmt_use_dac; michael@0: /* EY 5/5/08 - nr_sack flag variable */ michael@0: uint32_t sctp_nr_sack_on_off; michael@0: uint32_t sctp_use_cwnd_based_maxburst; michael@0: uint32_t sctp_asconf_auth_nochk; michael@0: uint32_t sctp_auth_disable; michael@0: uint32_t sctp_nat_friendly; michael@0: uint32_t sctp_L2_abc_variable; michael@0: uint32_t sctp_mbuf_threshold_count; michael@0: uint32_t sctp_do_drain; michael@0: uint32_t sctp_hb_maxburst; michael@0: uint32_t sctp_abort_if_one_2_one_hits_limit; michael@0: uint32_t sctp_strict_data_order; michael@0: uint32_t sctp_min_residual; michael@0: uint32_t sctp_max_retran_chunk; michael@0: uint32_t sctp_logging_level; michael@0: /* JRS - Variable for default congestion control module */ michael@0: uint32_t sctp_default_cc_module; michael@0: /* RS - Variable for default stream scheduling module */ michael@0: uint32_t sctp_default_ss_module; michael@0: uint32_t sctp_default_frag_interleave; michael@0: uint32_t sctp_mobility_base; michael@0: uint32_t sctp_mobility_fasthandoff; michael@0: uint32_t sctp_inits_include_nat_friendly; michael@0: uint32_t sctp_rttvar_bw; michael@0: uint32_t sctp_rttvar_rtt; michael@0: uint32_t sctp_rttvar_eqret; michael@0: uint32_t sctp_steady_step; michael@0: uint32_t sctp_use_dccc_ecn; michael@0: #if defined(SCTP_LOCAL_TRACE_BUF) michael@0: #if defined(__Windows__) michael@0: struct sctp_log *sctp_log; michael@0: #else michael@0: struct sctp_log sctp_log; michael@0: #endif michael@0: #endif michael@0: uint32_t sctp_udp_tunneling_port; michael@0: uint32_t sctp_enable_sack_immediately; michael@0: uint32_t sctp_vtag_time_wait; michael@0: uint32_t sctp_buffer_splitting; michael@0: uint32_t sctp_initial_cwnd; michael@0: uint32_t sctp_blackhole; michael@0: #if defined(SCTP_DEBUG) michael@0: uint32_t sctp_debug_on; michael@0: #endif michael@0: #if defined(__APPLE__) michael@0: uint32_t sctp_ignore_vmware_interfaces; michael@0: uint32_t sctp_main_timer; michael@0: uint32_t sctp_addr_watchdog_limit; michael@0: uint32_t sctp_vtag_watchdog_limit; michael@0: #endif michael@0: #if defined(__APPLE__) || defined(SCTP_SO_LOCK_TESTING) michael@0: uint32_t sctp_output_unlocked; michael@0: #endif michael@0: }; michael@0: michael@0: /* michael@0: * limits for the sysctl variables michael@0: */ michael@0: /* maxdgram: Maximum outgoing SCTP buffer size */ michael@0: #define SCTPCTL_MAXDGRAM_DESC "Maximum outgoing SCTP buffer size" michael@0: #define SCTPCTL_MAXDGRAM_MIN 0 michael@0: #define SCTPCTL_MAXDGRAM_MAX 0xFFFFFFFF michael@0: #define SCTPCTL_MAXDGRAM_DEFAULT 262144 /* 256k */ michael@0: michael@0: /* recvspace: Maximum incoming SCTP buffer size */ michael@0: #define SCTPCTL_RECVSPACE_DESC "Maximum incoming SCTP buffer size" michael@0: #define SCTPCTL_RECVSPACE_MIN 0 michael@0: #define SCTPCTL_RECVSPACE_MAX 0xFFFFFFFF michael@0: #define SCTPCTL_RECVSPACE_DEFAULT 262144 /* 256k */ michael@0: michael@0: /* autoasconf: Enable SCTP Auto-ASCONF */ michael@0: #define SCTPCTL_AUTOASCONF_DESC "Enable SCTP Auto-ASCONF" michael@0: #define SCTPCTL_AUTOASCONF_MIN 0 michael@0: #define SCTPCTL_AUTOASCONF_MAX 1 michael@0: #define SCTPCTL_AUTOASCONF_DEFAULT SCTP_DEFAULT_AUTO_ASCONF michael@0: michael@0: /* autoasconf: Enable SCTP Auto-ASCONF */ michael@0: #define SCTPCTL_MULTIPLEASCONFS_DESC "Enable SCTP Muliple-ASCONFs" michael@0: #define SCTPCTL_MULTIPLEASCONFS_MIN 0 michael@0: #define SCTPCTL_MULTIPLEASCONFS_MAX 1 michael@0: #define SCTPCTL_MULTIPLEASCONFS_DEFAULT SCTP_DEFAULT_MULTIPLE_ASCONFS michael@0: michael@0: /* ecn_enable: Enable SCTP ECN */ michael@0: #define SCTPCTL_ECN_ENABLE_DESC "Enable SCTP ECN" michael@0: #define SCTPCTL_ECN_ENABLE_MIN 0 michael@0: #define SCTPCTL_ECN_ENABLE_MAX 1 michael@0: #define SCTPCTL_ECN_ENABLE_DEFAULT 1 michael@0: michael@0: /* strict_sacks: Enable SCTP Strict SACK checking */ michael@0: #define SCTPCTL_STRICT_SACKS_DESC "Enable SCTP Strict SACK checking" michael@0: #define SCTPCTL_STRICT_SACKS_MIN 0 michael@0: #define SCTPCTL_STRICT_SACKS_MAX 1 michael@0: #define SCTPCTL_STRICT_SACKS_DEFAULT 1 michael@0: michael@0: /* loopback_nocsum: Enable NO Csum on packets sent on loopback */ michael@0: #define SCTPCTL_LOOPBACK_NOCSUM_DESC "Enable NO Csum on packets sent on loopback" michael@0: #define SCTPCTL_LOOPBACK_NOCSUM_MIN 0 michael@0: #define SCTPCTL_LOOPBACK_NOCSUM_MAX 1 michael@0: #define SCTPCTL_LOOPBACK_NOCSUM_DEFAULT 1 michael@0: michael@0: /* peer_chkoh: Amount to debit peers rwnd per chunk sent */ michael@0: #define SCTPCTL_PEER_CHKOH_DESC "Amount to debit peers rwnd per chunk sent" michael@0: #define SCTPCTL_PEER_CHKOH_MIN 0 michael@0: #define SCTPCTL_PEER_CHKOH_MAX 0xFFFFFFFF michael@0: #define SCTPCTL_PEER_CHKOH_DEFAULT 256 michael@0: michael@0: /* maxburst: Default max burst for sctp endpoints */ michael@0: #define SCTPCTL_MAXBURST_DESC "Default max burst for sctp endpoints" michael@0: #define SCTPCTL_MAXBURST_MIN 0 michael@0: #define SCTPCTL_MAXBURST_MAX 0xFFFFFFFF michael@0: #define SCTPCTL_MAXBURST_DEFAULT SCTP_DEF_MAX_BURST michael@0: michael@0: /* fr_maxburst: Default max burst for sctp endpoints when fast retransmitting */ michael@0: #define SCTPCTL_FRMAXBURST_DESC "Default fr max burst for sctp endpoints" michael@0: #define SCTPCTL_FRMAXBURST_MIN 0 michael@0: #define SCTPCTL_FRMAXBURST_MAX 0xFFFFFFFF michael@0: #define SCTPCTL_FRMAXBURST_DEFAULT SCTP_DEF_FRMAX_BURST michael@0: michael@0: michael@0: /* maxchunks: Default max chunks on queue per asoc */ michael@0: #define SCTPCTL_MAXCHUNKS_DESC "Default max chunks on queue per asoc" michael@0: #define SCTPCTL_MAXCHUNKS_MIN 0 michael@0: #define SCTPCTL_MAXCHUNKS_MAX 0xFFFFFFFF michael@0: #define SCTPCTL_MAXCHUNKS_DEFAULT SCTP_ASOC_MAX_CHUNKS_ON_QUEUE michael@0: michael@0: /* tcbhashsize: Tunable for Hash table sizes */ michael@0: #define SCTPCTL_TCBHASHSIZE_DESC "Tunable for TCB hash table sizes" michael@0: #define SCTPCTL_TCBHASHSIZE_MIN 1 michael@0: #define SCTPCTL_TCBHASHSIZE_MAX 0xFFFFFFFF michael@0: #define SCTPCTL_TCBHASHSIZE_DEFAULT SCTP_TCBHASHSIZE michael@0: michael@0: /* pcbhashsize: Tunable for PCB Hash table sizes */ michael@0: #define SCTPCTL_PCBHASHSIZE_DESC "Tunable for PCB hash table sizes" michael@0: #define SCTPCTL_PCBHASHSIZE_MIN 1 michael@0: #define SCTPCTL_PCBHASHSIZE_MAX 0xFFFFFFFF michael@0: #define SCTPCTL_PCBHASHSIZE_DEFAULT SCTP_PCBHASHSIZE michael@0: michael@0: /* min_split_point: Minimum size when splitting a chunk */ michael@0: #define SCTPCTL_MIN_SPLIT_POINT_DESC "Minimum size when splitting a chunk" michael@0: #define SCTPCTL_MIN_SPLIT_POINT_MIN 0 michael@0: #define SCTPCTL_MIN_SPLIT_POINT_MAX 0xFFFFFFFF michael@0: #define SCTPCTL_MIN_SPLIT_POINT_DEFAULT SCTP_DEFAULT_SPLIT_POINT_MIN michael@0: michael@0: /* chunkscale: Tunable for Scaling of number of chunks and messages */ michael@0: #define SCTPCTL_CHUNKSCALE_DESC "Tunable for Scaling of number of chunks and messages" michael@0: #define SCTPCTL_CHUNKSCALE_MIN 1 michael@0: #define SCTPCTL_CHUNKSCALE_MAX 0xFFFFFFFF michael@0: #define SCTPCTL_CHUNKSCALE_DEFAULT SCTP_CHUNKQUEUE_SCALE michael@0: michael@0: /* delayed_sack_time: Default delayed SACK timer in ms */ michael@0: #define SCTPCTL_DELAYED_SACK_TIME_DESC "Default delayed SACK timer in ms" michael@0: #define SCTPCTL_DELAYED_SACK_TIME_MIN 0 michael@0: #define SCTPCTL_DELAYED_SACK_TIME_MAX 0xFFFFFFFF michael@0: #define SCTPCTL_DELAYED_SACK_TIME_DEFAULT SCTP_RECV_MSEC michael@0: michael@0: /* sack_freq: Default SACK frequency */ michael@0: #define SCTPCTL_SACK_FREQ_DESC "Default SACK frequency" michael@0: #define SCTPCTL_SACK_FREQ_MIN 0 michael@0: #define SCTPCTL_SACK_FREQ_MAX 0xFFFFFFFF michael@0: #define SCTPCTL_SACK_FREQ_DEFAULT SCTP_DEFAULT_SACK_FREQ michael@0: michael@0: /* sys_resource: Max number of cached resources in the system */ michael@0: #define SCTPCTL_SYS_RESOURCE_DESC "Max number of cached resources in the system" michael@0: #define SCTPCTL_SYS_RESOURCE_MIN 0 michael@0: #define SCTPCTL_SYS_RESOURCE_MAX 0xFFFFFFFF michael@0: #define SCTPCTL_SYS_RESOURCE_DEFAULT SCTP_DEF_SYSTEM_RESC_LIMIT michael@0: michael@0: /* asoc_resource: Max number of cached resources in an asoc */ michael@0: #define SCTPCTL_ASOC_RESOURCE_DESC "Max number of cached resources in an asoc" michael@0: #define SCTPCTL_ASOC_RESOURCE_MIN 0 michael@0: #define SCTPCTL_ASOC_RESOURCE_MAX 0xFFFFFFFF michael@0: #define SCTPCTL_ASOC_RESOURCE_DEFAULT SCTP_DEF_ASOC_RESC_LIMIT michael@0: michael@0: /* heartbeat_interval: Default heartbeat interval in ms */ michael@0: #define SCTPCTL_HEARTBEAT_INTERVAL_DESC "Default heartbeat interval in ms" michael@0: #define SCTPCTL_HEARTBEAT_INTERVAL_MIN 0 michael@0: #define SCTPCTL_HEARTBEAT_INTERVAL_MAX 0xFFFFFFFF michael@0: #define SCTPCTL_HEARTBEAT_INTERVAL_DEFAULT SCTP_HB_DEFAULT_MSEC michael@0: michael@0: /* pmtu_raise_time: Default PMTU raise timer in seconds */ michael@0: #define SCTPCTL_PMTU_RAISE_TIME_DESC "Default PMTU raise timer in seconds" michael@0: #define SCTPCTL_PMTU_RAISE_TIME_MIN 0 michael@0: #define SCTPCTL_PMTU_RAISE_TIME_MAX 0xFFFFFFFF michael@0: #define SCTPCTL_PMTU_RAISE_TIME_DEFAULT SCTP_DEF_PMTU_RAISE_SEC michael@0: michael@0: /* shutdown_guard_time: Default shutdown guard timer in seconds */ michael@0: #define SCTPCTL_SHUTDOWN_GUARD_TIME_DESC "Default shutdown guard timer in seconds" michael@0: #define SCTPCTL_SHUTDOWN_GUARD_TIME_MIN 0 michael@0: #define SCTPCTL_SHUTDOWN_GUARD_TIME_MAX 0xFFFFFFFF michael@0: #define SCTPCTL_SHUTDOWN_GUARD_TIME_DEFAULT SCTP_DEF_MAX_SHUTDOWN_SEC michael@0: michael@0: /* secret_lifetime: Default secret lifetime in seconds */ michael@0: #define SCTPCTL_SECRET_LIFETIME_DESC "Default secret lifetime in seconds" michael@0: #define SCTPCTL_SECRET_LIFETIME_MIN 0 michael@0: #define SCTPCTL_SECRET_LIFETIME_MAX 0xFFFFFFFF michael@0: #define SCTPCTL_SECRET_LIFETIME_DEFAULT SCTP_DEFAULT_SECRET_LIFE_SEC michael@0: michael@0: /* rto_max: Default maximum retransmission timeout in ms */ michael@0: #define SCTPCTL_RTO_MAX_DESC "Default maximum retransmission timeout in ms" michael@0: #define SCTPCTL_RTO_MAX_MIN 0 michael@0: #define SCTPCTL_RTO_MAX_MAX 0xFFFFFFFF michael@0: #define SCTPCTL_RTO_MAX_DEFAULT SCTP_RTO_UPPER_BOUND michael@0: michael@0: /* rto_min: Default minimum retransmission timeout in ms */ michael@0: #define SCTPCTL_RTO_MIN_DESC "Default minimum retransmission timeout in ms" michael@0: #define SCTPCTL_RTO_MIN_MIN 0 michael@0: #define SCTPCTL_RTO_MIN_MAX 0xFFFFFFFF michael@0: #define SCTPCTL_RTO_MIN_DEFAULT SCTP_RTO_LOWER_BOUND michael@0: michael@0: /* rto_initial: Default initial retransmission timeout in ms */ michael@0: #define SCTPCTL_RTO_INITIAL_DESC "Default initial retransmission timeout in ms" michael@0: #define SCTPCTL_RTO_INITIAL_MIN 0 michael@0: #define SCTPCTL_RTO_INITIAL_MAX 0xFFFFFFFF michael@0: #define SCTPCTL_RTO_INITIAL_DEFAULT SCTP_RTO_INITIAL michael@0: michael@0: /* init_rto_max: Default maximum retransmission timeout during association setup in ms */ michael@0: #define SCTPCTL_INIT_RTO_MAX_DESC "Default maximum retransmission timeout during association setup in ms" michael@0: #define SCTPCTL_INIT_RTO_MAX_MIN 0 michael@0: #define SCTPCTL_INIT_RTO_MAX_MAX 0xFFFFFFFF michael@0: #define SCTPCTL_INIT_RTO_MAX_DEFAULT SCTP_RTO_UPPER_BOUND michael@0: michael@0: /* valid_cookie_life: Default cookie lifetime in sec */ michael@0: #define SCTPCTL_VALID_COOKIE_LIFE_DESC "Default cookie lifetime in seconds" michael@0: #define SCTPCTL_VALID_COOKIE_LIFE_MIN 0 michael@0: #define SCTPCTL_VALID_COOKIE_LIFE_MAX 0xFFFFFFFF michael@0: #define SCTPCTL_VALID_COOKIE_LIFE_DEFAULT SCTP_DEFAULT_COOKIE_LIFE michael@0: michael@0: /* init_rtx_max: Default maximum number of retransmission for INIT chunks */ michael@0: #define SCTPCTL_INIT_RTX_MAX_DESC "Default maximum number of retransmission for INIT chunks" michael@0: #define SCTPCTL_INIT_RTX_MAX_MIN 0 michael@0: #define SCTPCTL_INIT_RTX_MAX_MAX 0xFFFFFFFF michael@0: #define SCTPCTL_INIT_RTX_MAX_DEFAULT SCTP_DEF_MAX_INIT michael@0: michael@0: /* assoc_rtx_max: Default maximum number of retransmissions per association */ michael@0: #define SCTPCTL_ASSOC_RTX_MAX_DESC "Default maximum number of retransmissions per association" michael@0: #define SCTPCTL_ASSOC_RTX_MAX_MIN 0 michael@0: #define SCTPCTL_ASSOC_RTX_MAX_MAX 0xFFFFFFFF michael@0: #define SCTPCTL_ASSOC_RTX_MAX_DEFAULT SCTP_DEF_MAX_SEND michael@0: michael@0: /* path_rtx_max: Default maximum of retransmissions per path */ michael@0: #define SCTPCTL_PATH_RTX_MAX_DESC "Default maximum of retransmissions per path" michael@0: #define SCTPCTL_PATH_RTX_MAX_MIN 0 michael@0: #define SCTPCTL_PATH_RTX_MAX_MAX 0xFFFFFFFF michael@0: #define SCTPCTL_PATH_RTX_MAX_DEFAULT SCTP_DEF_MAX_PATH_RTX michael@0: michael@0: /* path_pf_threshold: threshold for considering the path potentially failed */ michael@0: #define SCTPCTL_PATH_PF_THRESHOLD_DESC "Default potentially failed threshold" michael@0: #define SCTPCTL_PATH_PF_THRESHOLD_MIN 0 michael@0: #define SCTPCTL_PATH_PF_THRESHOLD_MAX 0xFFFF michael@0: #define SCTPCTL_PATH_PF_THRESHOLD_DEFAULT SCTPCTL_PATH_PF_THRESHOLD_MAX michael@0: michael@0: /* add_more_on_output: When space-wise is it worthwhile to try to add more to a socket send buffer */ michael@0: #define SCTPCTL_ADD_MORE_ON_OUTPUT_DESC "When space-wise is it worthwhile to try to add more to a socket send buffer" michael@0: #define SCTPCTL_ADD_MORE_ON_OUTPUT_MIN 0 michael@0: #define SCTPCTL_ADD_MORE_ON_OUTPUT_MAX 0xFFFFFFFF michael@0: #define SCTPCTL_ADD_MORE_ON_OUTPUT_DEFAULT SCTP_DEFAULT_ADD_MORE michael@0: michael@0: /* incoming_streams: Default number of incoming streams */ michael@0: #define SCTPCTL_INCOMING_STREAMS_DESC "Default number of incoming streams" michael@0: #define SCTPCTL_INCOMING_STREAMS_MIN 1 michael@0: #define SCTPCTL_INCOMING_STREAMS_MAX 65535 michael@0: #define SCTPCTL_INCOMING_STREAMS_DEFAULT SCTP_ISTREAM_INITIAL michael@0: michael@0: /* outgoing_streams: Default number of outgoing streams */ michael@0: #define SCTPCTL_OUTGOING_STREAMS_DESC "Default number of outgoing streams" michael@0: #define SCTPCTL_OUTGOING_STREAMS_MIN 1 michael@0: #define SCTPCTL_OUTGOING_STREAMS_MAX 65535 michael@0: #define SCTPCTL_OUTGOING_STREAMS_DEFAULT SCTP_OSTREAM_INITIAL michael@0: michael@0: /* cmt_on_off: CMT on/off flag */ michael@0: #define SCTPCTL_CMT_ON_OFF_DESC "CMT settings" michael@0: #define SCTPCTL_CMT_ON_OFF_MIN SCTP_CMT_OFF michael@0: #define SCTPCTL_CMT_ON_OFF_MAX SCTP_CMT_MAX michael@0: #define SCTPCTL_CMT_ON_OFF_DEFAULT SCTP_CMT_OFF michael@0: michael@0: /* EY - nr_sack_on_off: NR_SACK on/off flag */ michael@0: #define SCTPCTL_NR_SACK_ON_OFF_DESC "NR_SACK on/off flag" michael@0: #define SCTPCTL_NR_SACK_ON_OFF_MIN 0 michael@0: #define SCTPCTL_NR_SACK_ON_OFF_MAX 1 michael@0: #define SCTPCTL_NR_SACK_ON_OFF_DEFAULT 0 michael@0: michael@0: /* cmt_use_dac: CMT DAC on/off flag */ michael@0: #define SCTPCTL_CMT_USE_DAC_DESC "CMT DAC on/off flag" michael@0: #define SCTPCTL_CMT_USE_DAC_MIN 0 michael@0: #define SCTPCTL_CMT_USE_DAC_MAX 1 michael@0: #define SCTPCTL_CMT_USE_DAC_DEFAULT 0 michael@0: michael@0: /* cwnd_maxburst: Use a CWND adjusting maxburst */ michael@0: #define SCTPCTL_CWND_MAXBURST_DESC "Use a CWND adjusting maxburst" michael@0: #define SCTPCTL_CWND_MAXBURST_MIN 0 michael@0: #define SCTPCTL_CWND_MAXBURST_MAX 1 michael@0: #define SCTPCTL_CWND_MAXBURST_DEFAULT 1 michael@0: michael@0: /* asconf_auth_nochk: Disable SCTP ASCONF AUTH requirement */ michael@0: #define SCTPCTL_ASCONF_AUTH_NOCHK_DESC "Disable SCTP ASCONF AUTH requirement" michael@0: #define SCTPCTL_ASCONF_AUTH_NOCHK_MIN 0 michael@0: #define SCTPCTL_ASCONF_AUTH_NOCHK_MAX 1 michael@0: #define SCTPCTL_ASCONF_AUTH_NOCHK_DEFAULT 0 michael@0: michael@0: /* auth_disable: Disable SCTP AUTH function */ michael@0: #define SCTPCTL_AUTH_DISABLE_DESC "Disable SCTP AUTH function" michael@0: #define SCTPCTL_AUTH_DISABLE_MIN 0 michael@0: #define SCTPCTL_AUTH_DISABLE_MAX 1 michael@0: #define SCTPCTL_AUTH_DISABLE_DEFAULT 0 michael@0: michael@0: /* nat_friendly: SCTP NAT friendly operation */ michael@0: #define SCTPCTL_NAT_FRIENDLY_DESC "SCTP NAT friendly operation" michael@0: #define SCTPCTL_NAT_FRIENDLY_MIN 0 michael@0: #define SCTPCTL_NAT_FRIENDLY_MAX 1 michael@0: #define SCTPCTL_NAT_FRIENDLY_DEFAULT 1 michael@0: michael@0: /* abc_l_var: SCTP ABC max increase per SACK (L) */ michael@0: #define SCTPCTL_ABC_L_VAR_DESC "SCTP ABC max increase per SACK (L)" michael@0: #define SCTPCTL_ABC_L_VAR_MIN 0 michael@0: #define SCTPCTL_ABC_L_VAR_MAX 0xFFFFFFFF michael@0: #define SCTPCTL_ABC_L_VAR_DEFAULT 2 michael@0: michael@0: /* max_chained_mbufs: Default max number of small mbufs on a chain */ michael@0: #define SCTPCTL_MAX_CHAINED_MBUFS_DESC "Default max number of small mbufs on a chain" michael@0: #define SCTPCTL_MAX_CHAINED_MBUFS_MIN 0 michael@0: #define SCTPCTL_MAX_CHAINED_MBUFS_MAX 0xFFFFFFFF michael@0: #define SCTPCTL_MAX_CHAINED_MBUFS_DEFAULT SCTP_DEFAULT_MBUFS_IN_CHAIN michael@0: michael@0: /* do_sctp_drain: Should SCTP respond to the drain calls */ michael@0: #define SCTPCTL_DO_SCTP_DRAIN_DESC "Should SCTP respond to the drain calls" michael@0: #define SCTPCTL_DO_SCTP_DRAIN_MIN 0 michael@0: #define SCTPCTL_DO_SCTP_DRAIN_MAX 1 michael@0: #define SCTPCTL_DO_SCTP_DRAIN_DEFAULT 1 michael@0: michael@0: /* hb_max_burst: Confirmation Heartbeat max burst? */ michael@0: #define SCTPCTL_HB_MAX_BURST_DESC "Confirmation Heartbeat max burst" michael@0: #define SCTPCTL_HB_MAX_BURST_MIN 1 michael@0: #define SCTPCTL_HB_MAX_BURST_MAX 0xFFFFFFFF michael@0: #define SCTPCTL_HB_MAX_BURST_DEFAULT SCTP_DEF_HBMAX_BURST michael@0: michael@0: /* abort_at_limit: When one-2-one hits qlimit abort */ michael@0: #define SCTPCTL_ABORT_AT_LIMIT_DESC "When one-2-one hits qlimit abort" michael@0: #define SCTPCTL_ABORT_AT_LIMIT_MIN 0 michael@0: #define SCTPCTL_ABORT_AT_LIMIT_MAX 1 michael@0: #define SCTPCTL_ABORT_AT_LIMIT_DEFAULT 0 michael@0: michael@0: /* strict_data_order: Enforce strict data ordering, abort if control inside data */ michael@0: #define SCTPCTL_STRICT_DATA_ORDER_DESC "Enforce strict data ordering, abort if control inside data" michael@0: #define SCTPCTL_STRICT_DATA_ORDER_MIN 0 michael@0: #define SCTPCTL_STRICT_DATA_ORDER_MAX 1 michael@0: #define SCTPCTL_STRICT_DATA_ORDER_DEFAULT 0 michael@0: michael@0: /* min_residual: min residual in a data fragment leftover */ michael@0: #define SCTPCTL_MIN_RESIDUAL_DESC "Minimum residual data chunk in second part of split" michael@0: #define SCTPCTL_MIN_RESIDUAL_MIN 20 michael@0: #define SCTPCTL_MIN_RESIDUAL_MAX 65535 michael@0: #define SCTPCTL_MIN_RESIDUAL_DEFAULT 1452 michael@0: michael@0: /* max_retran_chunk: max chunk retransmissions */ michael@0: #define SCTPCTL_MAX_RETRAN_CHUNK_DESC "Maximum times an unlucky chunk can be retran'd before assoc abort" michael@0: #define SCTPCTL_MAX_RETRAN_CHUNK_MIN 0 michael@0: #define SCTPCTL_MAX_RETRAN_CHUNK_MAX 65535 michael@0: #define SCTPCTL_MAX_RETRAN_CHUNK_DEFAULT 30 michael@0: michael@0: /* sctp_logging: This gives us logging when the options are enabled */ michael@0: #define SCTPCTL_LOGGING_LEVEL_DESC "Ltrace/KTR trace logging level" michael@0: #define SCTPCTL_LOGGING_LEVEL_MIN 0 michael@0: #define SCTPCTL_LOGGING_LEVEL_MAX 0xffffffff michael@0: #define SCTPCTL_LOGGING_LEVEL_DEFAULT 0 michael@0: michael@0: /* JRS - default congestion control module sysctl */ michael@0: #define SCTPCTL_DEFAULT_CC_MODULE_DESC "Default congestion control module" michael@0: #define SCTPCTL_DEFAULT_CC_MODULE_MIN 0 michael@0: #define SCTPCTL_DEFAULT_CC_MODULE_MAX 2 michael@0: #define SCTPCTL_DEFAULT_CC_MODULE_DEFAULT 0 michael@0: michael@0: /* RS - default stream scheduling module sysctl */ michael@0: #define SCTPCTL_DEFAULT_SS_MODULE_DESC "Default stream scheduling module" michael@0: #define SCTPCTL_DEFAULT_SS_MODULE_MIN 0 michael@0: #define SCTPCTL_DEFAULT_SS_MODULE_MAX 5 michael@0: #define SCTPCTL_DEFAULT_SS_MODULE_DEFAULT 0 michael@0: michael@0: /* RRS - default fragment interleave */ michael@0: #define SCTPCTL_DEFAULT_FRAG_INTERLEAVE_DESC "Default fragment interleave level" michael@0: #define SCTPCTL_DEFAULT_FRAG_INTERLEAVE_MIN 0 michael@0: #define SCTPCTL_DEFAULT_FRAG_INTERLEAVE_MAX 2 michael@0: #define SCTPCTL_DEFAULT_FRAG_INTERLEAVE_DEFAULT 1 michael@0: michael@0: /* mobility_base: Enable SCTP mobility support */ michael@0: #define SCTPCTL_MOBILITY_BASE_DESC "Enable SCTP base mobility" michael@0: #define SCTPCTL_MOBILITY_BASE_MIN 0 michael@0: #define SCTPCTL_MOBILITY_BASE_MAX 1 michael@0: #define SCTPCTL_MOBILITY_BASE_DEFAULT SCTP_DEFAULT_MOBILITY_BASE michael@0: michael@0: /* mobility_fasthandoff: Enable SCTP fast handoff support */ michael@0: #define SCTPCTL_MOBILITY_FASTHANDOFF_DESC "Enable SCTP fast handoff" michael@0: #define SCTPCTL_MOBILITY_FASTHANDOFF_MIN 0 michael@0: #define SCTPCTL_MOBILITY_FASTHANDOFF_MAX 1 michael@0: #define SCTPCTL_MOBILITY_FASTHANDOFF_DEFAULT SCTP_DEFAULT_MOBILITY_FASTHANDOFF michael@0: michael@0: /* Enable SCTP/UDP tunneling port */ michael@0: #define SCTPCTL_UDP_TUNNELING_PORT_DESC "Set the SCTP/UDP tunneling port" michael@0: #define SCTPCTL_UDP_TUNNELING_PORT_MIN 0 michael@0: #define SCTPCTL_UDP_TUNNELING_PORT_MAX 65535 michael@0: #define SCTPCTL_UDP_TUNNELING_PORT_DEFAULT SCTP_OVER_UDP_TUNNELING_PORT michael@0: michael@0: /* Enable sending of the SACK-IMMEDIATELY bit */ michael@0: #define SCTPCTL_SACK_IMMEDIATELY_ENABLE_DESC "Enable sending of the SACK-IMMEDIATELY-bit." michael@0: #define SCTPCTL_SACK_IMMEDIATELY_ENABLE_MIN 0 michael@0: #define SCTPCTL_SACK_IMMEDIATELY_ENABLE_MAX 1 michael@0: #define SCTPCTL_SACK_IMMEDIATELY_ENABLE_DEFAULT SCTPCTL_SACK_IMMEDIATELY_ENABLE_MIN michael@0: michael@0: /* Enable sending of the NAT-FRIENDLY message */ michael@0: #define SCTPCTL_NAT_FRIENDLY_INITS_DESC "Enable sending of the nat-friendly SCTP option on INITs." michael@0: #define SCTPCTL_NAT_FRIENDLY_INITS_MIN 0 michael@0: #define SCTPCTL_NAT_FRIENDLY_INITS_MAX 1 michael@0: #define SCTPCTL_NAT_FRIENDLY_INITS_DEFAULT SCTPCTL_NAT_FRIENDLY_INITS_MIN michael@0: michael@0: /* Vtag time wait in seconds */ michael@0: #define SCTPCTL_TIME_WAIT_DESC "Vtag time wait time in seconds, 0 disables it." michael@0: #define SCTPCTL_TIME_WAIT_MIN 0 michael@0: #define SCTPCTL_TIME_WAIT_MAX 0xffffffff michael@0: #define SCTPCTL_TIME_WAIT_DEFAULT SCTP_TIME_WAIT michael@0: michael@0: /* Enable Send/Receive buffer splitting */ michael@0: #define SCTPCTL_BUFFER_SPLITTING_DESC "Enable send/receive buffer splitting." michael@0: #define SCTPCTL_BUFFER_SPLITTING_MIN 0 michael@0: #define SCTPCTL_BUFFER_SPLITTING_MAX 0x3 michael@0: #define SCTPCTL_BUFFER_SPLITTING_DEFAULT SCTPCTL_BUFFER_SPLITTING_MIN michael@0: michael@0: /* Initial congestion window in MTU */ michael@0: #define SCTPCTL_INITIAL_CWND_DESC "Initial congestion window in MTUs" michael@0: #define SCTPCTL_INITIAL_CWND_MIN 0 michael@0: #define SCTPCTL_INITIAL_CWND_MAX 0xffffffff michael@0: #define SCTPCTL_INITIAL_CWND_DEFAULT 3 michael@0: michael@0: /* rttvar smooth avg for bw calc */ michael@0: #define SCTPCTL_RTTVAR_BW_DESC "Shift amount for bw smoothing on rtt calc" michael@0: #define SCTPCTL_RTTVAR_BW_MIN 0 michael@0: #define SCTPCTL_RTTVAR_BW_MAX 32 michael@0: #define SCTPCTL_RTTVAR_BW_DEFAULT 4 michael@0: michael@0: /* rttvar smooth avg for bw calc */ michael@0: #define SCTPCTL_RTTVAR_RTT_DESC "Shift amount for rtt smoothing on rtt calc" michael@0: #define SCTPCTL_RTTVAR_RTT_MIN 0 michael@0: #define SCTPCTL_RTTVAR_RTT_MAX 32 michael@0: #define SCTPCTL_RTTVAR_RTT_DEFAULT 5 michael@0: michael@0: #define SCTPCTL_RTTVAR_EQRET_DESC "What to return when rtt and bw are unchanged" michael@0: #define SCTPCTL_RTTVAR_EQRET_MIN 0 michael@0: #define SCTPCTL_RTTVAR_EQRET_MAX 1 michael@0: #define SCTPCTL_RTTVAR_EQRET_DEFAULT 0 michael@0: michael@0: #define SCTPCTL_RTTVAR_STEADYS_DESC "How many the sames it takes to try step down of cwnd" michael@0: #define SCTPCTL_RTTVAR_STEADYS_MIN 0 michael@0: #define SCTPCTL_RTTVAR_STEADYS_MAX 0xFFFF michael@0: #define SCTPCTL_RTTVAR_STEADYS_DEFAULT 20 /* 0 means disable feature */ michael@0: michael@0: #define SCTPCTL_RTTVAR_DCCCECN_DESC "Enable for RTCC CC datacenter ECN" michael@0: #define SCTPCTL_RTTVAR_DCCCECN_MIN 0 michael@0: #define SCTPCTL_RTTVAR_DCCCECN_MAX 1 michael@0: #define SCTPCTL_RTTVAR_DCCCECN_DEFAULT 1 /* 0 means disable feature */ michael@0: michael@0: #define SCTPCTL_BLACKHOLE_DESC "Enable SCTP blackholing" michael@0: #define SCTPCTL_BLACKHOLE_MIN 0 michael@0: #define SCTPCTL_BLACKHOLE_MAX 2 michael@0: #define SCTPCTL_BLACKHOLE_DEFAULT SCTPCTL_BLACKHOLE_MIN michael@0: michael@0: #if defined(SCTP_DEBUG) michael@0: /* debug: Configure debug output */ michael@0: #define SCTPCTL_DEBUG_DESC "Configure debug output" michael@0: #define SCTPCTL_DEBUG_MIN 0 michael@0: #define SCTPCTL_DEBUG_MAX 0xFFFFFFFF michael@0: #define SCTPCTL_DEBUG_DEFAULT 0 michael@0: #endif michael@0: michael@0: #if defined(__APPLE__) michael@0: #define SCTPCTL_MAIN_TIMER_DESC "Main timer interval in ms" michael@0: #define SCTPCTL_MAIN_TIMER_MIN 1 michael@0: #define SCTPCTL_MAIN_TIMER_MAX 0xFFFFFFFF michael@0: #define SCTPCTL_MAIN_TIMER_DEFAULT 10 michael@0: michael@0: #define SCTPCTL_IGNORE_VMWARE_INTERFACES_DESC "Ignore VMware Interfaces" michael@0: #define SCTPCTL_IGNORE_VMWARE_INTERFACES_MIN 0 michael@0: #define SCTPCTL_IGNORE_VMWARE_INTERFACES_MAX 1 michael@0: #define SCTPCTL_IGNORE_VMWARE_INTERFACES_DEFAULT SCTPCTL_IGNORE_VMWARE_INTERFACES_MAX michael@0: #endif michael@0: michael@0: #if defined(__APPLE__) || defined(SCTP_SO_LOCK_TESTING) michael@0: #define SCTPCTL_OUTPUT_UNLOCKED_DESC "Unlock socket when sending packets down to IP." michael@0: #define SCTPCTL_OUTPUT_UNLOCKED_MIN 0 michael@0: #define SCTPCTL_OUTPUT_UNLOCKED_MAX 1 michael@0: #define SCTPCTL_OUTPUT_UNLOCKED_DEFAULT SCTPCTL_OUTPUT_UNLOCKED_MIN michael@0: #endif michael@0: michael@0: #if defined(__APPLE__) michael@0: #define SCTPCTL_ADDR_WATCHDOG_LIMIT_MIN 0 michael@0: #define SCTPCTL_ADDR_WATCHDOG_LIMIT_MAX 0xFFFFFFFF michael@0: #define SCTPCTL_ADDR_WATCHDOG_LIMIT_DEFAULT SCTPCTL_ADDR_WATCHDOG_LIMIT_MIN michael@0: michael@0: #define SCTPCTL_VTAG_WATCHDOG_LIMIT_MIN 0 michael@0: #define SCTPCTL_VTAG_WATCHDOG_LIMIT_MAX 0xFFFFFFFF michael@0: #define SCTPCTL_VTAG_WATCHDOG_LIMIT_DEFAULT SCTPCTL_VTAG_WATCHDOG_LIMIT_MIN michael@0: #endif michael@0: michael@0: #if defined(_KERNEL) || defined(__Userspace__) michael@0: #if defined(__FreeBSD__) || defined(__APPLE__) || defined(__Userspace__) michael@0: #if defined(SYSCTL_DECL) michael@0: SYSCTL_DECL(_net_inet_sctp); michael@0: #endif michael@0: #endif michael@0: michael@0: void sctp_init_sysctls(void); michael@0: #if defined(__Windows__) michael@0: void sctp_finish_sysctls(void); michael@0: #endif michael@0: michael@0: #endif /* _KERNEL */ michael@0: #endif /* __sctp_sysctl_h__ */