The Design and Implementation of the FreeBSD Operating System, Second Edition
Now available: The Design and Implementation of the FreeBSD Operating System (Second Edition)


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]

FreeBSD/Linux Kernel Cross Reference
sys/netinet/sctp_sysctl.h

Version: -  FREEBSD  -  FREEBSD-13-STABLE  -  FREEBSD-13-0  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  l41  -  OPENBSD  -  linux-2.6  -  MK84  -  PLAN9  -  xnu-8792 
SearchContext: -  none  -  3  -  10 

    1 /*-
    2  * Copyright (c) 2007, by Cisco Systems, Inc. All rights reserved.
    3  *
    4  * Redistribution and use in source and binary forms, with or without
    5  * modification, are permitted provided that the following conditions are met:
    6  *
    7  * a) Redistributions of source code must retain the above copyright notice,
    8  *   this list of conditions and the following disclaimer.
    9  *
   10  * b) Redistributions in binary form must reproduce the above copyright
   11  *    notice, this list of conditions and the following disclaimer in
   12  *   the documentation and/or other materials provided with the distribution.
   13  *
   14  * c) Neither the name of Cisco Systems, Inc. nor the names of its
   15  *    contributors may be used to endorse or promote products derived
   16  *    from this software without specific prior written permission.
   17  *
   18  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
   19  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
   20  * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
   21  * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
   22  * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
   23  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
   24  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
   25  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
   26  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
   27  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
   28  * THE POSSIBILITY OF SUCH DAMAGE.
   29  */
   30 
   31 #include <sys/cdefs.h>
   32 __FBSDID("$FreeBSD$");
   33 
   34 #ifndef __sctp_sysctl_h__
   35 #define __sctp_sysctl_h__
   36 
   37 #include <netinet/sctp_os.h>
   38 #include <netinet/sctp_constants.h>
   39 
   40 /*
   41  * limits for the sysctl variables
   42  */
   43 /* maxdgram: Maximum outgoing SCTP buffer size */
   44 #define SCTPCTL_MAXDGRAM_DESC           "Maximum outgoing SCTP buffer size"
   45 #define SCTPCTL_MAXDGRAM_MIN            0
   46 #define SCTPCTL_MAXDGRAM_MAX            0xFFFFFFFF
   47 #define SCTPCTL_MAXDGRAM_DEFAULT        262144  /* 256k */
   48 
   49 /* recvspace: Maximum incoming SCTP buffer size */
   50 #define SCTPCTL_RECVSPACE_DESC          "Maximum incoming SCTP buffer size"
   51 #define SCTPCTL_RECVSPACE_MIN           0
   52 #define SCTPCTL_RECVSPACE_MAX           0xFFFFFFFF
   53 #define SCTPCTL_RECVSPACE_DEFAULT       262144  /* 256k */
   54 
   55 /* autoasconf: Enable SCTP Auto-ASCONF */
   56 #define SCTPCTL_AUTOASCONF_DESC         "Enable SCTP Auto-ASCONF"
   57 #define SCTPCTL_AUTOASCONF_MIN          0
   58 #define SCTPCTL_AUTOASCONF_MAX          1
   59 #define SCTPCTL_AUTOASCONF_DEFAULT      SCTP_DEFAULT_AUTO_ASCONF
   60 
   61 /* ecn_enable: Enable SCTP ECN */
   62 #define SCTPCTL_ECN_ENABLE_DESC         "Enable SCTP ECN"
   63 #define SCTPCTL_ECN_ENABLE_MIN          0
   64 #define SCTPCTL_ECN_ENABLE_MAX          1
   65 #define SCTPCTL_ECN_ENABLE_DEFAULT      1
   66 
   67 /* ecn_nonce: Enable SCTP ECN Nonce */
   68 #define SCTPCTL_ECN_NONCE_DESC          "Enable SCTP ECN Nonce"
   69 #define SCTPCTL_ECN_NONCE_MIN           0
   70 #define SCTPCTL_ECN_NONCE_MAX           1
   71 #define SCTPCTL_ECN_NONCE_DEFAULT       0
   72 
   73 /* strict_sacks: Enable SCTP Strict SACK checking */
   74 #define SCTPCTL_STRICT_SACKS_DESC       "Enable SCTP Strict SACK checking"
   75 #define SCTPCTL_STRICT_SACKS_MIN        0
   76 #define SCTPCTL_STRICT_SACKS_MAX        1
   77 #define SCTPCTL_STRICT_SACKS_DEFAULT    0
   78 
   79 /* loopback_nocsum: Enable NO Csum on packets sent on loopback */
   80 #define SCTPCTL_LOOPBACK_NOCSUM_DESC    "Enable NO Csum on packets sent on loopback"
   81 #define SCTPCTL_LOOPBACK_NOCSUM_MIN     0
   82 #define SCTPCTL_LOOPBACK_NOCSUM_MAX     1
   83 #define SCTPCTL_LOOPBACK_NOCSUM_DEFAULT 1
   84 
   85 /* strict_init: Enable strict INIT/INIT-ACK singleton enforcement */
   86 #define SCTPCTL_STRICT_INIT_DESC        "Enable strict INIT/INIT-ACK singleton enforcement"
   87 #define SCTPCTL_STRICT_INIT_MIN         0
   88 #define SCTPCTL_STRICT_INIT_MAX         1
   89 #define SCTPCTL_STRICT_INIT_DEFAULT     1
   90 
   91 /* peer_chkoh: Amount to debit peers rwnd per chunk sent */
   92 #define SCTPCTL_PEER_CHKOH_DESC         "Amount to debit peers rwnd per chunk sent"
   93 #define SCTPCTL_PEER_CHKOH_MIN          0
   94 #define SCTPCTL_PEER_CHKOH_MAX          0xFFFFFFFF
   95 #define SCTPCTL_PEER_CHKOH_DEFAULT      256
   96 
   97 /* maxburst: Default max burst for sctp endpoints */
   98 #define SCTPCTL_MAXBURST_DESC           "Default max burst for sctp endpoints"
   99 #define SCTPCTL_MAXBURST_MIN            1
  100 #define SCTPCTL_MAXBURST_MAX            0xFFFFFFFF
  101 #define SCTPCTL_MAXBURST_DEFAULT        SCTP_DEF_MAX_BURST
  102 
  103 /* maxchunks: Default max chunks on queue per asoc */
  104 #define SCTPCTL_MAXCHUNKS_DESC          "Default max chunks on queue per asoc"
  105 #define SCTPCTL_MAXCHUNKS_MIN           0
  106 #define SCTPCTL_MAXCHUNKS_MAX           0xFFFFFFFF
  107 #define SCTPCTL_MAXCHUNKS_DEFAULT       SCTP_ASOC_MAX_CHUNKS_ON_QUEUE
  108 
  109 /* tcbhashsize: Tuneable for Hash table sizes */
  110 #define SCTPCTL_TCBHASHSIZE_DESC        "Tunable for TCB hash table sizes"
  111 #define SCTPCTL_TCBHASHSIZE_MIN         1
  112 #define SCTPCTL_TCBHASHSIZE_MAX         0xFFFFFFFF
  113 #define SCTPCTL_TCBHASHSIZE_DEFAULT     SCTP_TCBHASHSIZE
  114 
  115 /* pcbhashsize: Tuneable for PCB Hash table sizes */
  116 #define SCTPCTL_PCBHASHSIZE_DESC        "Tunable for PCB hash table sizes"
  117 #define SCTPCTL_PCBHASHSIZE_MIN         1
  118 #define SCTPCTL_PCBHASHSIZE_MAX         0xFFFFFFFF
  119 #define SCTPCTL_PCBHASHSIZE_DEFAULT     SCTP_PCBHASHSIZE
  120 
  121 /* min_split_point: Minimum size when splitting a chunk */
  122 #define SCTPCTL_MIN_SPLIT_POINT_DESC    "Minimum size when splitting a chunk"
  123 #define SCTPCTL_MIN_SPLIT_POINT_MIN     0
  124 #define SCTPCTL_MIN_SPLIT_POINT_MAX     0xFFFFFFFF
  125 #define SCTPCTL_MIN_SPLIT_POINT_DEFAULT SCTP_DEFAULT_SPLIT_POINT_MIN
  126 
  127 /* chunkscale: Tuneable for Scaling of number of chunks and messages */
  128 #define SCTPCTL_CHUNKSCALE_DESC         "Tuneable for Scaling of number of chunks and messages"
  129 #define SCTPCTL_CHUNKSCALE_MIN          1
  130 #define SCTPCTL_CHUNKSCALE_MAX          0xFFFFFFFF
  131 #define SCTPCTL_CHUNKSCALE_DEFAULT      SCTP_CHUNKQUEUE_SCALE
  132 
  133 /* delayed_sack_time: Default delayed SACK timer in msec */
  134 #define SCTPCTL_DELAYED_SACK_TIME_DESC  "Default delayed SACK timer in msec"
  135 #define SCTPCTL_DELAYED_SACK_TIME_MIN   0
  136 #define SCTPCTL_DELAYED_SACK_TIME_MAX   0xFFFFFFFF
  137 #define SCTPCTL_DELAYED_SACK_TIME_DEFAULT       SCTP_RECV_MSEC
  138 
  139 /* sack_freq: Default SACK frequency */
  140 #define SCTPCTL_SACK_FREQ_DESC          "Default SACK frequency"
  141 #define SCTPCTL_SACK_FREQ_MIN           0
  142 #define SCTPCTL_SACK_FREQ_MAX           0xFFFFFFFF
  143 #define SCTPCTL_SACK_FREQ_DEFAULT       SCTP_DEFAULT_SACK_FREQ
  144 
  145 /* sys_resource: Max number of cached resources in the system */
  146 #define SCTPCTL_SYS_RESOURCE_DESC       "Max number of cached resources in the system"
  147 #define SCTPCTL_SYS_RESOURCE_MIN        0
  148 #define SCTPCTL_SYS_RESOURCE_MAX        0xFFFFFFFF
  149 #define SCTPCTL_SYS_RESOURCE_DEFAULT    SCTP_DEF_SYSTEM_RESC_LIMIT
  150 
  151 /* asoc_resource: Max number of cached resources in an asoc */
  152 #define SCTPCTL_ASOC_RESOURCE_DESC      "Max number of cached resources in an asoc"
  153 #define SCTPCTL_ASOC_RESOURCE_MIN       0
  154 #define SCTPCTL_ASOC_RESOURCE_MAX       0xFFFFFFFF
  155 #define SCTPCTL_ASOC_RESOURCE_DEFAULT   SCTP_DEF_ASOC_RESC_LIMIT
  156 
  157 /* heartbeat_interval: Default heartbeat interval in msec */
  158 #define SCTPCTL_HEARTBEAT_INTERVAL_DESC "Default heartbeat interval in msec"
  159 #define SCTPCTL_HEARTBEAT_INTERVAL_MIN  0
  160 #define SCTPCTL_HEARTBEAT_INTERVAL_MAX  0xFFFFFFFF
  161 #define SCTPCTL_HEARTBEAT_INTERVAL_DEFAULT      SCTP_HB_DEFAULT_MSEC
  162 
  163 /* pmtu_raise_time: Default PMTU raise timer in sec */
  164 #define SCTPCTL_PMTU_RAISE_TIME_DESC    "Default PMTU raise timer in sec"
  165 #define SCTPCTL_PMTU_RAISE_TIME_MIN     0
  166 #define SCTPCTL_PMTU_RAISE_TIME_MAX     0xFFFFFFFF
  167 #define SCTPCTL_PMTU_RAISE_TIME_DEFAULT SCTP_DEF_PMTU_RAISE_SEC
  168 
  169 /* shutdown_guard_time: Default shutdown guard timer in sec */
  170 #define SCTPCTL_SHUTDOWN_GUARD_TIME_DESC        "Default shutdown guard timer in sec"
  171 #define SCTPCTL_SHUTDOWN_GUARD_TIME_MIN         0
  172 #define SCTPCTL_SHUTDOWN_GUARD_TIME_MAX         0xFFFFFFFF
  173 #define SCTPCTL_SHUTDOWN_GUARD_TIME_DEFAULT     SCTP_DEF_MAX_SHUTDOWN_SEC
  174 
  175 /* secret_lifetime: Default secret lifetime in sec */
  176 #define SCTPCTL_SECRET_LIFETIME_DESC    "Default secret lifetime in sec"
  177 #define SCTPCTL_SECRET_LIFETIME_MIN     0
  178 #define SCTPCTL_SECRET_LIFETIME_MAX     0xFFFFFFFF
  179 #define SCTPCTL_SECRET_LIFETIME_DEFAULT SCTP_DEFAULT_SECRET_LIFE_SEC
  180 
  181 /* rto_max: Default maximum retransmission timeout in msec */
  182 #define SCTPCTL_RTO_MAX_DESC            "Default maximum retransmission timeout in msec"
  183 #define SCTPCTL_RTO_MAX_MIN             0
  184 #define SCTPCTL_RTO_MAX_MAX             0xFFFFFFFF
  185 #define SCTPCTL_RTO_MAX_DEFAULT         SCTP_RTO_UPPER_BOUND
  186 
  187 /* rto_min: Default minimum retransmission timeout in msec */
  188 #define SCTPCTL_RTO_MIN_DESC            "Default minimum retransmission timeout in msec"
  189 #define SCTPCTL_RTO_MIN_MIN             0
  190 #define SCTPCTL_RTO_MIN_MAX             0xFFFFFFFF
  191 #define SCTPCTL_RTO_MIN_DEFAULT         SCTP_RTO_LOWER_BOUND
  192 
  193 /* rto_initial: Default initial retransmission timeout in msec */
  194 #define SCTPCTL_RTO_INITIAL_DESC        "Default initial retransmission timeout in msec"
  195 #define SCTPCTL_RTO_INITIAL_MIN         0
  196 #define SCTPCTL_RTO_INITIAL_MAX         0xFFFFFFFF
  197 #define SCTPCTL_RTO_INITIAL_DEFAULT     SCTP_RTO_INITIAL
  198 
  199 /* init_rto_max: Default maximum retransmission timeout during association setup in msec */
  200 #define SCTPCTL_INIT_RTO_MAX_DESC       "Default maximum retransmission timeout during association setup in msec"
  201 #define SCTPCTL_INIT_RTO_MAX_MIN        0
  202 #define SCTPCTL_INIT_RTO_MAX_MAX        0xFFFFFFFF
  203 #define SCTPCTL_INIT_RTO_MAX_DEFAULT    SCTP_RTO_UPPER_BOUND
  204 
  205 /* valid_cookie_life: Default cookie lifetime in sec */
  206 #define SCTPCTL_VALID_COOKIE_LIFE_DESC  "Default cookie lifetime in sec"
  207 #define SCTPCTL_VALID_COOKIE_LIFE_MIN   0
  208 #define SCTPCTL_VALID_COOKIE_LIFE_MAX   0xFFFFFFFF
  209 #define SCTPCTL_VALID_COOKIE_LIFE_DEFAULT       SCTP_DEFAULT_COOKIE_LIFE
  210 
  211 /* init_rtx_max: Default maximum number of retransmission for INIT chunks */
  212 #define SCTPCTL_INIT_RTX_MAX_DESC       "Default maximum number of retransmission for INIT chunks"
  213 #define SCTPCTL_INIT_RTX_MAX_MIN        0
  214 #define SCTPCTL_INIT_RTX_MAX_MAX        0xFFFFFFFF
  215 #define SCTPCTL_INIT_RTX_MAX_DEFAULT    SCTP_DEF_MAX_INIT
  216 
  217 /* assoc_rtx_max: Default maximum number of retransmissions per association */
  218 #define SCTPCTL_ASSOC_RTX_MAX_DESC      "Default maximum number of retransmissions per association"
  219 #define SCTPCTL_ASSOC_RTX_MAX_MIN       0
  220 #define SCTPCTL_ASSOC_RTX_MAX_MAX       0xFFFFFFFF
  221 #define SCTPCTL_ASSOC_RTX_MAX_DEFAULT   SCTP_DEF_MAX_SEND
  222 
  223 /* path_rtx_max: Default maximum of retransmissions per path */
  224 #define SCTPCTL_PATH_RTX_MAX_DESC       "Default maximum of retransmissions per path"
  225 #define SCTPCTL_PATH_RTX_MAX_MIN        0
  226 #define SCTPCTL_PATH_RTX_MAX_MAX        0xFFFFFFFF
  227 #define SCTPCTL_PATH_RTX_MAX_DEFAULT    SCTP_DEF_MAX_PATH_RTX
  228 
  229 /* add_more_on_output: When space wise is it worthwhile to try to add more to a socket send buffer */
  230 #define SCTPCTL_ADD_MORE_ON_OUTPUT_DESC "When space wise is it worthwhile to try to add more to a socket send buffer"
  231 #define SCTPCTL_ADD_MORE_ON_OUTPUT_MIN  0
  232 #define SCTPCTL_ADD_MORE_ON_OUTPUT_MAX  0xFFFFFFFF
  233 #define SCTPCTL_ADD_MORE_ON_OUTPUT_DEFAULT SCTP_DEFAULT_ADD_MORE
  234 
  235 /* outgoing_streams: Default number of outgoing streams */
  236 #define SCTPCTL_OUTGOING_STREAMS_DESC   "Default number of outgoing streams"
  237 #define SCTPCTL_OUTGOING_STREAMS_MIN    1
  238 #define SCTPCTL_OUTGOING_STREAMS_MAX    65535
  239 #define SCTPCTL_OUTGOING_STREAMS_DEFAULT SCTP_OSTREAM_INITIAL
  240 
  241 /* cmt_on_off: CMT on/off flag */
  242 #define SCTPCTL_CMT_ON_OFF_DESC         "CMT on/off flag"
  243 #define SCTPCTL_CMT_ON_OFF_MIN          0
  244 #define SCTPCTL_CMT_ON_OFF_MAX          1
  245 #define SCTPCTL_CMT_ON_OFF_DEFAULT      0
  246 
  247 /* cmt_use_dac: CMT DAC on/off flag */
  248 #define SCTPCTL_CMT_USE_DAC_DESC        "CMT DAC on/off flag"
  249 #define SCTPCTL_CMT_USE_DAC_MIN         0
  250 #define SCTPCTL_CMT_USE_DAC_MAX         1
  251 #define SCTPCTL_CMT_USE_DAC_DEFAULT     0
  252 
  253 /* JRS 5/2107 - CMT PF type flag */
  254 #define SCTPCTL_CMT_PF_DESC             "CMT PF type flag"
  255 #define SCTPCTL_CMT_PF_MIN              0
  256 #define SCTPCTL_CMT_PF_MAX              2
  257 #define SCTPCTL_CMT_PF_DEFAULT          0
  258 
  259 /* cwnd_maxburst: Use a CWND adjusting maxburst */
  260 #define SCTPCTL_CWND_MAXBURST_DESC      "Use a CWND adjusting maxburst"
  261 #define SCTPCTL_CWND_MAXBURST_MIN       0
  262 #define SCTPCTL_CWND_MAXBURST_MAX       1
  263 #define SCTPCTL_CWND_MAXBURST_DEFAULT   1
  264 
  265 /* early_fast_retran: Early Fast Retransmit with timer */
  266 #define SCTPCTL_EARLY_FAST_RETRAN_DESC  "Early Fast Retransmit with timer"
  267 #define SCTPCTL_EARLY_FAST_RETRAN_MIN   0
  268 #define SCTPCTL_EARLY_FAST_RETRAN_MAX   0xFFFFFFFF
  269 #define SCTPCTL_EARLY_FAST_RETRAN_DEFAULT       0
  270 
  271 /* early_fast_retran_msec: Early Fast Retransmit minimum timer value */
  272 #define SCTPCTL_EARLY_FAST_RETRAN_MSEC_DESC     "Early Fast Retransmit minimum timer value"
  273 #define SCTPCTL_EARLY_FAST_RETRAN_MSEC_MIN      0
  274 #define SCTPCTL_EARLY_FAST_RETRAN_MSEC_MAX      0xFFFFFFFF
  275 #define SCTPCTL_EARLY_FAST_RETRAN_MSEC_DEFAULT  SCTP_MINFR_MSEC_TIMER
  276 
  277 /* asconf_auth_nochk: Disable SCTP ASCONF AUTH requirement */
  278 #define SCTPCTL_ASCONF_AUTH_NOCHK_DESC  "Disable SCTP ASCONF AUTH requirement"
  279 #define SCTPCTL_ASCONF_AUTH_NOCHK_MIN   0
  280 #define SCTPCTL_ASCONF_AUTH_NOCHK_MAX   1
  281 #define SCTPCTL_ASCONF_AUTH_NOCHK_DEFAULT       0
  282 
  283 /* auth_disable: Disable SCTP AUTH function */
  284 #define SCTPCTL_AUTH_DISABLE_DESC       "Disable SCTP AUTH function"
  285 #define SCTPCTL_AUTH_DISABLE_MIN        0
  286 #define SCTPCTL_AUTH_DISABLE_MAX        1
  287 #define SCTPCTL_AUTH_DISABLE_DEFAULT    0
  288 
  289 /* nat_friendly: SCTP NAT friendly operation */
  290 #define SCTPCTL_NAT_FRIENDLY_DESC       "SCTP NAT friendly operation"
  291 #define SCTPCTL_NAT_FRIENDLY_MIN        0
  292 #define SCTPCTL_NAT_FRIENDLY_MAX        1
  293 #define SCTPCTL_NAT_FRIENDLY_DEFAULT    1
  294 
  295 /* abc_l_var: SCTP ABC max increase per SACK (L) */
  296 #define SCTPCTL_ABC_L_VAR_DESC          "SCTP ABC max increase per SACK (L)"
  297 #define SCTPCTL_ABC_L_VAR_MIN           0
  298 #define SCTPCTL_ABC_L_VAR_MAX           0xFFFFFFFF
  299 #define SCTPCTL_ABC_L_VAR_DEFAULT       1
  300 
  301 /* max_chained_mbufs: Default max number of small mbufs on a chain */
  302 #define SCTPCTL_MAX_CHAINED_MBUFS_DESC  "Default max number of small mbufs on a chain"
  303 #define SCTPCTL_MAX_CHAINED_MBUFS_MIN   0
  304 #define SCTPCTL_MAX_CHAINED_MBUFS_MAX   0xFFFFFFFF
  305 #define SCTPCTL_MAX_CHAINED_MBUFS_DEFAULT       SCTP_DEFAULT_MBUFS_IN_CHAIN
  306 
  307 /* do_sctp_drain: Should SCTP respond to the drain calls */
  308 #define SCTPCTL_DO_SCTP_DRAIN_DESC      "Should SCTP respond to the drain calls"
  309 #define SCTPCTL_DO_SCTP_DRAIN_MIN       0
  310 #define SCTPCTL_DO_SCTP_DRAIN_MAX       1
  311 #define SCTPCTL_DO_SCTP_DRAIN_DEFAULT   1
  312 
  313 /* hb_max_burst: Confirmation Heartbeat max burst? */
  314 #define SCTPCTL_HB_MAX_BURST_DESC       "Confirmation Heartbeat max burst"
  315 #define SCTPCTL_HB_MAX_BURST_MIN        1
  316 #define SCTPCTL_HB_MAX_BURST_MAX        0xFFFFFFFF
  317 #define SCTPCTL_HB_MAX_BURST_DEFAULT    SCTP_DEF_MAX_BURST
  318 
  319 /* abort_at_limit: When one-2-one hits qlimit abort */
  320 #define SCTPCTL_ABORT_AT_LIMIT_DESC     "When one-2-one hits qlimit abort"
  321 #define SCTPCTL_ABORT_AT_LIMIT_MIN      0
  322 #define SCTPCTL_ABORT_AT_LIMIT_MAX      1
  323 #define SCTPCTL_ABORT_AT_LIMIT_DEFAULT  0
  324 
  325 /* strict_data_order: Enforce strict data ordering, abort if control inside data */
  326 #define SCTPCTL_STRICT_DATA_ORDER_DESC  "Enforce strict data ordering, abort if control inside data"
  327 #define SCTPCTL_STRICT_DATA_ORDER_MIN   0
  328 #define SCTPCTL_STRICT_DATA_ORDER_MAX   1
  329 #define SCTPCTL_STRICT_DATA_ORDER_DEFAULT       0
  330 
  331 /* min_residual: min residual in a data fragment leftover */
  332 #define SCTPCTL_MIN_RESIDUAL_DESC       "Minimum residual data chunk in second part of split"
  333 #define SCTPCTL_MIN_RESIDUAL_MIN        20
  334 #define SCTPCTL_MIN_RESIDUAL_MAX        65535
  335 #define SCTPCTL_MIN_RESIDUAL_DEFAULT    1452
  336 
  337 /* max_retran_chunk: max chunk retransmissions */
  338 #define SCTPCTL_MAX_RETRAN_CHUNK_DESC   "Maximum times an unlucky chunk can be retran'd before assoc abort"
  339 #define SCTPCTL_MAX_RETRAN_CHUNK_MIN    0
  340 #define SCTPCTL_MAX_RETRAN_CHUNK_MAX    65535
  341 #define SCTPCTL_MAX_RETRAN_CHUNK_DEFAULT        30
  342 
  343 /* sctp_logging: This gives us logging when the options are enabled */
  344 #define SCTPCTL_LOGGING_LEVEL_DESC      "Ltrace/KTR trace logging level"
  345 #define SCTPCTL_LOGGING_LEVEL_MIN       0
  346 #define SCTPCTL_LOGGING_LEVEL_MAX       0xffffffff
  347 #define SCTPCTL_LOGGING_LEVEL_DEFAULT   0
  348 
  349 /* JRS - default congestion control module sysctl */
  350 #define SCTPCTL_DEFAULT_CC_MODULE_DESC          "Default congestion control module"
  351 #define SCTPCTL_DEFAULT_CC_MODULE_MIN           0
  352 #define SCTPCTL_DEFAULT_CC_MODULE_MAX           2
  353 #define SCTPCTL_DEFAULT_CC_MODULE_DEFAULT       0
  354 
  355 /* RRS - default fragment interleave */
  356 #define SCTPCTL_DEFAULT_FRAG_INTERLEAVE_DESC    "Default fragment interleave level"
  357 #define SCTPCTL_DEFAULT_FRAG_INTERLEAVE_MIN     0
  358 #define SCTPCTL_DEFAULT_FRAG_INTERLEAVE_MAX     2
  359 #define SCTPCTL_DEFAULT_FRAG_INTERLEAVE_DEFAULT 1
  360 
  361 /* mobility_base: Enable SCTP mobility support */
  362 #define SCTPCTL_MOBILITY_BASE_DESC      "Enable SCTP base mobility"
  363 #define SCTPCTL_MOBILITY_BASE_MIN       0
  364 #define SCTPCTL_MOBILITY_BASE_MAX       1
  365 #define SCTPCTL_MOBILITY_BASE_DEFAULT   SCTP_DEFAULT_MOBILITY_BASE
  366 
  367 /* mobility_fasthandoff: Enable SCTP fast handoff support */
  368 #define SCTPCTL_MOBILITY_FASTHANDOFF_DESC       "Enable SCTP fast handoff"
  369 #define SCTPCTL_MOBILITY_FASTHANDOFF_MIN        0
  370 #define SCTPCTL_MOBILITY_FASTHANDOFF_MAX        1
  371 #define SCTPCTL_MOBILITY_FASTHANDOFF_DEFAULT    SCTP_DEFAULT_MOBILITY_FASTHANDOFF
  372 
  373 #if defined(SCTP_DEBUG)
  374 /* debug: Configure debug output */
  375 #define SCTPCTL_DEBUG_DESC      "Configure debug output"
  376 #define SCTPCTL_DEBUG_MIN       0
  377 #define SCTPCTL_DEBUG_MAX       0xFFFFFFFF
  378 #define SCTPCTL_DEBUG_DEFAULT   0
  379 #endif
  380 
  381 
  382 
  383 #if defined(_KERNEL)
  384 
  385 /*
  386  * variable definitions
  387  */
  388 extern uint32_t sctp_sendspace;
  389 extern uint32_t sctp_recvspace;
  390 extern uint32_t sctp_auto_asconf;
  391 extern uint32_t sctp_ecn_enable;
  392 extern uint32_t sctp_ecn_nonce;
  393 extern uint32_t sctp_strict_sacks;
  394 extern uint32_t sctp_no_csum_on_loopback;
  395 extern uint32_t sctp_strict_init;
  396 extern uint32_t sctp_peer_chunk_oh;
  397 extern uint32_t sctp_max_burst_default;
  398 extern uint32_t sctp_max_chunks_on_queue;
  399 extern uint32_t sctp_hashtblsize;
  400 extern uint32_t sctp_pcbtblsize;
  401 extern uint32_t sctp_min_split_point;
  402 extern uint32_t sctp_chunkscale;
  403 extern uint32_t sctp_delayed_sack_time_default;
  404 extern uint32_t sctp_sack_freq_default;
  405 extern uint32_t sctp_system_free_resc_limit;
  406 extern uint32_t sctp_asoc_free_resc_limit;
  407 extern uint32_t sctp_heartbeat_interval_default;
  408 extern uint32_t sctp_pmtu_raise_time_default;
  409 extern uint32_t sctp_shutdown_guard_time_default;
  410 extern uint32_t sctp_secret_lifetime_default;
  411 extern uint32_t sctp_rto_max_default;
  412 extern uint32_t sctp_rto_min_default;
  413 extern uint32_t sctp_rto_initial_default;
  414 extern uint32_t sctp_init_rto_max_default;
  415 extern uint32_t sctp_valid_cookie_life_default;
  416 extern uint32_t sctp_init_rtx_max_default;
  417 extern uint32_t sctp_assoc_rtx_max_default;
  418 extern uint32_t sctp_path_rtx_max_default;
  419 extern uint32_t sctp_add_more_threshold;
  420 extern uint32_t sctp_nr_outgoing_streams_default;
  421 extern uint32_t sctp_cmt_on_off;
  422 extern uint32_t sctp_cmt_use_dac;
  423 
  424 /* JRS 5/21/07 - CMT PF type flag variables  */
  425 extern uint32_t sctp_cmt_pf;
  426 extern uint32_t sctp_use_cwnd_based_maxburst;
  427 extern uint32_t sctp_early_fr;
  428 extern uint32_t sctp_early_fr_msec;
  429 extern uint32_t sctp_asconf_auth_nochk;
  430 extern uint32_t sctp_auth_disable;
  431 extern uint32_t sctp_nat_friendly;
  432 extern uint32_t sctp_L2_abc_variable;
  433 extern uint32_t sctp_mbuf_threshold_count;
  434 extern uint32_t sctp_do_drain;
  435 extern uint32_t sctp_hb_maxburst;
  436 extern uint32_t sctp_abort_if_one_2_one_hits_limit;
  437 extern uint32_t sctp_strict_data_order;
  438 extern uint32_t sctp_min_residual;
  439 extern uint32_t sctp_max_retran_chunk;
  440 extern uint32_t sctp_logging_level;
  441 
  442 /* JRS - Variable for the default congestion control module */
  443 extern uint32_t sctp_default_cc_module;
  444 extern uint32_t sctp_default_frag_interleave;
  445 extern uint32_t sctp_mobility_base;
  446 extern uint32_t sctp_mobility_fasthandoff;
  447 
  448 #if defined(SCTP_LOCAL_TRACE_BUF)
  449 extern struct sctp_log sctp_log;
  450 
  451 #endif
  452 #if defined(SCTP_DEBUG)
  453 extern uint32_t sctp_debug_on;
  454 
  455 #endif
  456 
  457 extern struct sctpstat sctpstat;
  458 
  459 #if defined(SYSCTL_DECL)
  460 SYSCTL_DECL(_net_inet_sctp);
  461 #endif
  462 
  463 #endif                          /* _KERNEL */
  464 #endif                          /* __sctp_sysctl_h__ */

Cache object: f09a7632adc62b5b4b4e3f50ce0bb8c5


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]


This page is part of the FreeBSD/Linux Linux Kernel Cross-Reference, and was automatically generated using a modified version of the LXR engine.