1/*-
2 * Copyright (c) 2007, 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: head/sys/netinet/sctp_sysctl.h 168299 2007-04-03 11:15:32Z rrs $");
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 1
45#define SCTPCTL_MAXDGRAM_DESC "Maximum outgoing SCTP buffer size"
46#define SCTPCTL_MAXDGRAM_MIN 0
47#define SCTPCTL_MAXDGRAM_MAX 0xFFFFFFFF
48#define SCTPCTL_MAXDGRAM_DEFAULT 262144 /* 256k */
49
50/* recvspace: Maximum incoming SCTP buffer size */
51#define SCTPCTL_RECVSPACE 2
52#define SCTPCTL_RECVSPACE_DESC "Maximum incoming SCTP buffer size"
53#define SCTPCTL_RECVSPACE_MIN 0
54#define SCTPCTL_RECVSPACE_MAX 0xFFFFFFFF
55#define SCTPCTL_RECVSPACE_DEFAULT 262144 /* 256k */
56
57/* autoasconf: Enable SCTP Auto-ASCONF */
58#define SCTPCTL_AUTOASCONF 3
59#define SCTPCTL_AUTOASCONF_DESC "Enable SCTP Auto-ASCONF"
60#define SCTPCTL_AUTOASCONF_MIN 0
61#define SCTPCTL_AUTOASCONF_MAX 1
62#define SCTPCTL_AUTOASCONF_DEFAULT SCTP_DEFAULT_AUTO_ASCONF
63
64/* ecn_enable: Enable SCTP ECN */
65#define SCTPCTL_ECN_ENABLE 4
66#define SCTPCTL_ECN_ENABLE_DESC "Enable SCTP ECN"
67#define SCTPCTL_ECN_ENABLE_MIN 0
68#define SCTPCTL_ECN_ENABLE_MAX 1
69#define SCTPCTL_ECN_ENABLE_DEFAULT 1
70
71/* ecn_nonce: Enable SCTP ECN Nonce */
72#define SCTPCTL_ECN_NONCE 5
73#define SCTPCTL_ECN_NONCE_DESC "Enable SCTP ECN Nonce"
74#define SCTPCTL_ECN_NONCE_MIN 0
75#define SCTPCTL_ECN_NONCE_MAX 1
76#define SCTPCTL_ECN_NONCE_DEFAULT 0
77
78/* strict_sacks: Enable SCTP Strict SACK checking */
79#define SCTPCTL_STRICT_SACKS 6
80#define SCTPCTL_STRICT_SACKS_DESC "Enable SCTP Strict SACK checking"
81#define SCTPCTL_STRICT_SACKS_MIN 0
82#define SCTPCTL_STRICT_SACKS_MAX 1
83#define SCTPCTL_STRICT_SACKS_DEFAULT 0
84
85/* loopback_nocsum: Enable NO Csum on packets sent on loopback */
86#define SCTPCTL_LOOPBACK_NOCSUM 7
87#define SCTPCTL_LOOPBACK_NOCSUM_DESC "Enable NO Csum on packets sent on loopback"
88#define SCTPCTL_LOOPBACK_NOCSUM_MIN 0
89#define SCTPCTL_LOOPBACK_NOCSUM_MAX 1
90#define SCTPCTL_LOOPBACK_NOCSUM_DEFAULT 1
91
92/* strict_init: Enable strict INIT/INIT-ACK singleton enforcement */
93#define SCTPCTL_STRICT_INIT 8
94#define SCTPCTL_STRICT_INIT_DESC "Enable strict INIT/INIT-ACK singleton enforcement"
95#define SCTPCTL_STRICT_INIT_MIN 0
96#define SCTPCTL_STRICT_INIT_MAX 1
97#define SCTPCTL_STRICT_INIT_DEFAULT 1
98
99/* peer_chkoh: Amount to debit peers rwnd per chunk sent */
100#define SCTPCTL_PEER_CHKOH 9
101#define SCTPCTL_PEER_CHKOH_DESC "Amount to debit peers rwnd per chunk sent"
102#define SCTPCTL_PEER_CHKOH_MIN 0
103#define SCTPCTL_PEER_CHKOH_MAX 0xFFFFFFFF
104#define SCTPCTL_PEER_CHKOH_DEFAULT 0 /* sizeof struct mbuf */
105
106/* maxburst: Default max burst for sctp endpoints */
107#define SCTPCTL_MAXBURST 10
108#define SCTPCTL_MAXBURST_DESC "Default max burst for sctp endpoints"
109#define SCTPCTL_MAXBURST_MIN 1
110#define SCTPCTL_MAXBURST_MAX 0xFFFFFFFF
111#define SCTPCTL_MAXBURST_DEFAULT SCTP_DEF_MAX_BURST
112
113/* maxchunks: Default max chunks on queue per asoc */
114#define SCTPCTL_MAXCHUNKS 11
115#define SCTPCTL_MAXCHUNKS_DESC "Default max chunks on queue per asoc"
116#define SCTPCTL_MAXCHUNKS_MIN 0
117#define SCTPCTL_MAXCHUNKS_MAX 0xFFFFFFFF
118#define SCTPCTL_MAXCHUNKS_DEFAULT SCTP_ASOC_MAX_CHUNKS_ON_QUEUE
119
120/* tcbhashsize: Tuneable for Hash table sizes */
121#define SCTPCTL_TCBHASHSIZE 12
122#define SCTPCTL_TCBHASHSIZE_DESC "Tunable for TCB hash table sizes"
123#define SCTPCTL_TCBHASHSIZE_MIN 1
124#define SCTPCTL_TCBHASHSIZE_MAX 0xFFFFFFFF
125#define SCTPCTL_TCBHASHSIZE_DEFAULT SCTP_TCBHASHSIZE
126
127/* pcbhashsize: Tuneable for PCB Hash table sizes */
128#define SCTPCTL_PCBHASHSIZE 13
129#define SCTPCTL_PCBHASHSIZE_DESC "Tunable for PCB hash table sizes"
130#define SCTPCTL_PCBHASHSIZE_MIN 1
131#define SCTPCTL_PCBHASHSIZE_MAX 0xFFFFFFFF
132#define SCTPCTL_PCBHASHSIZE_DEFAULT SCTP_PCBHASHSIZE
133
134/* min_split_point: Minimum size when splitting a chunk */
135#define SCTPCTL_MIN_SPLIT_POINT 14
136#define SCTPCTL_MIN_SPLIT_POINT_DESC "Minimum size when splitting a chunk"
137#define SCTPCTL_MIN_SPLIT_POINT_MIN 0
138#define SCTPCTL_MIN_SPLIT_POINT_MAX 0xFFFFFFFF
139#define SCTPCTL_MIN_SPLIT_POINT_DEFAULT SCTP_DEFAULT_SPLIT_POINT_MIN
140
141/* chunkscale: Tuneable for Scaling of number of chunks and messages */
142#define SCTPCTL_CHUNKSCALE 15
143#define SCTPCTL_CHUNKSCALE_DESC "Tuneable for Scaling of number of chunks and messages"
144#define SCTPCTL_CHUNKSCALE_MIN 1
145#define SCTPCTL_CHUNKSCALE_MAX 0xFFFFFFFF
146#define SCTPCTL_CHUNKSCALE_DEFAULT SCTP_CHUNKQUEUE_SCALE
147
148/* delayed_sack_time: Default delayed SACK timer in msec */
149#define SCTPCTL_DELAYED_SACK_TIME 16
150#define SCTPCTL_DELAYED_SACK_TIME_DESC "Default delayed SACK timer in msec"
151#define SCTPCTL_DELAYED_SACK_TIME_MIN 0
152#define SCTPCTL_DELAYED_SACK_TIME_MAX 0xFFFFFFFF
153#define SCTPCTL_DELAYED_SACK_TIME_DEFAULT SCTP_RECV_MSEC
154
155/* sack_freq: Default SACK frequency */
156#define SCTPCTL_SACK_FREQ 17
157#define SCTPCTL_SACK_FREQ_DESC "Default SACK frequency"
158#define SCTPCTL_SACK_FREQ_MIN 0
159#define SCTPCTL_SACK_FREQ_MAX 0xFFFFFFFF
160#define SCTPCTL_SACK_FREQ_DEFAULT SCTP_DEFAULT_SACK_FREQ
161
162/* sys_resource: Max number of cached resources in the system */
163#define SCTPCTL_SYS_RESOURCE 18
164#define SCTPCTL_SYS_RESOURCE_DESC "Max number of cached resources in the system"
165#define SCTPCTL_SYS_RESOURCE_MIN 0
166#define SCTPCTL_SYS_RESOURCE_MAX 0xFFFFFFFF
167#define SCTPCTL_SYS_RESOURCE_DEFAULT SCTP_DEF_SYSTEM_RESC_LIMIT
168
169/* asoc_resource: Max number of cached resources in an asoc */
170#define SCTPCTL_ASOC_RESOURCE 19
171#define SCTPCTL_ASOC_RESOURCE_DESC "Max number of cached resources in an asoc"
172#define SCTPCTL_ASOC_RESOURCE_MIN 0
173#define SCTPCTL_ASOC_RESOURCE_MAX 0xFFFFFFFF
174#define SCTPCTL_ASOC_RESOURCE_DEFAULT SCTP_DEF_ASOC_RESC_LIMIT
175
176/* heartbeat_interval: Default heartbeat interval in msec */
177#define SCTPCTL_HEARTBEAT_INTERVAL 20
178#define SCTPCTL_HEARTBEAT_INTERVAL_DESC "Default heartbeat interval in msec"
179#define SCTPCTL_HEARTBEAT_INTERVAL_MIN 0
180#define SCTPCTL_HEARTBEAT_INTERVAL_MAX 0xFFFFFFFF
181#define SCTPCTL_HEARTBEAT_INTERVAL_DEFAULT SCTP_HB_DEFAULT_MSEC
182
183/* pmtu_raise_time: Default PMTU raise timer in sec */
184#define SCTPCTL_PMTU_RAISE_TIME 21
185#define SCTPCTL_PMTU_RAISE_TIME_DESC "Default PMTU raise timer in sec"
186#define SCTPCTL_PMTU_RAISE_TIME_MIN 0
187#define SCTPCTL_PMTU_RAISE_TIME_MAX 0xFFFFFFFF
188#define SCTPCTL_PMTU_RAISE_TIME_DEFAULT SCTP_DEF_PMTU_RAISE_SEC
189
190/* shutdown_guard_time: Default shutdown guard timer in sec */
191#define SCTPCTL_SHUTDOWN_GUARD_TIME 22
192#define SCTPCTL_SHUTDOWN_GUARD_TIME_DESC "Default shutdown guard timer in sec"
193#define SCTPCTL_SHUTDOWN_GUARD_TIME_MIN 0
194#define SCTPCTL_SHUTDOWN_GUARD_TIME_MAX 0xFFFFFFFF
195#define SCTPCTL_SHUTDOWN_GUARD_TIME_DEFAULT SCTP_DEF_MAX_SHUTDOWN_SEC
196
197/* secret_lifetime: Default secret lifetime in sec */
198#define SCTPCTL_SECRET_LIFETIME 23
199#define SCTPCTL_SECRET_LIFETIME_DESC "Default secret lifetime in sec"
200#define SCTPCTL_SECRET_LIFETIME_MIN 0
201#define SCTPCTL_SECRET_LIFETIME_MAX 0xFFFFFFFF
202#define SCTPCTL_SECRET_LIFETIME_DEFAULT SCTP_DEFAULT_SECRET_LIFE_SEC
203
204/* rto_max: Default maximum retransmission timeout in msec */
205#define SCTPCTL_RTO_MAX 24
206#define SCTPCTL_RTO_MAX_DESC "Default maximum retransmission timeout in msec"
207#define SCTPCTL_RTO_MAX_MIN 0
208#define SCTPCTL_RTO_MAX_MAX 0xFFFFFFFF
209#define SCTPCTL_RTO_MAX_DEFAULT SCTP_RTO_UPPER_BOUND
210
211/* rto_min: Default minimum retransmission timeout in msec */
212#define SCTPCTL_RTO_MIN 25
213#define SCTPCTL_RTO_MIN_DESC "Default minimum retransmission timeout in msec"
214#define SCTPCTL_RTO_MIN_MIN 0
215#define SCTPCTL_RTO_MIN_MAX 0xFFFFFFFF
216#define SCTPCTL_RTO_MIN_DEFAULT SCTP_RTO_LOWER_BOUND
217
218/* rto_initial: Default initial retransmission timeout in msec */
219#define SCTPCTL_RTO_INITIAL 26
220#define SCTPCTL_RTO_INITIAL_DESC "Default initial retransmission timeout in msec"
221#define SCTPCTL_RTO_INITIAL_MIN 0
222#define SCTPCTL_RTO_INITIAL_MAX 0xFFFFFFFF
223#define SCTPCTL_RTO_INITIAL_DEFAULT SCTP_RTO_INITIAL
224
225/* init_rto_max: Default maximum retransmission timeout during association setup in msec */
226#define SCTPCTL_INIT_RTO_MAX 27
227#define SCTPCTL_INIT_RTO_MAX_DESC "Default maximum retransmission timeout during association setup in msec"
228#define SCTPCTL_INIT_RTO_MAX_MIN 0
229#define SCTPCTL_INIT_RTO_MAX_MAX 0xFFFFFFFF
230#define SCTPCTL_INIT_RTO_MAX_DEFAULT SCTP_RTO_UPPER_BOUND
231
232/* valid_cookie_life: Default cookie lifetime in sec */
233#define SCTPCTL_VALID_COOKIE_LIFE 28
234#define SCTPCTL_VALID_COOKIE_LIFE_DESC "Default cookie lifetime in sec"
235#define SCTPCTL_VALID_COOKIE_LIFE_MIN 0
236#define SCTPCTL_VALID_COOKIE_LIFE_MAX 0xFFFFFFFF
237#define SCTPCTL_VALID_COOKIE_LIFE_DEFAULT SCTP_DEFAULT_COOKIE_LIFE
238
239/* init_rtx_max: Default maximum number of retransmission for INIT chunks */
240#define SCTPCTL_INIT_RTX_MAX 29
241#define SCTPCTL_INIT_RTX_MAX_DESC "Default maximum number of retransmission for INIT chunks"
242#define SCTPCTL_INIT_RTX_MAX_MIN 0
243#define SCTPCTL_INIT_RTX_MAX_MAX 0xFFFFFFFF
244#define SCTPCTL_INIT_RTX_MAX_DEFAULT SCTP_DEF_MAX_INIT
245
246/* assoc_rtx_max: Default maximum number of retransmissions per association */
247#define SCTPCTL_ASSOC_RTX_MAX 30
248#define SCTPCTL_ASSOC_RTX_MAX_DESC "Default maximum number of retransmissions per association"
249#define SCTPCTL_ASSOC_RTX_MAX_MIN 0
250#define SCTPCTL_ASSOC_RTX_MAX_MAX 0xFFFFFFFF
251#define SCTPCTL_ASSOC_RTX_MAX_DEFAULT SCTP_DEF_MAX_SEND
252
253/* path_rtx_max: Default maximum of retransmissions per path */
254#define SCTPCTL_PATH_RTX_MAX 31
255#define SCTPCTL_PATH_RTX_MAX_DESC "Default maximum of retransmissions per path"
256#define SCTPCTL_PATH_RTX_MAX_MIN 0
257#define SCTPCTL_PATH_RTX_MAX_MAX 0xFFFFFFFF
258#define SCTPCTL_PATH_RTX_MAX_DEFAULT SCTP_DEF_MAX_PATH_RTX
259
260/* add_more_on_output: When space wise is it worthwhile to try to add more to a socket send buffer */
261#define SCTPCTL_ADD_MORE_ON_OUTPUT 32
262#define SCTPCTL_ADD_MORE_ON_OUTPUT_DESC "When space wise is it worthwhile to try to add more to a socket send buffer"
263#define SCTPCTL_ADD_MORE_ON_OUTPUT_MIN 0
264#define SCTPCTL_ADD_MORE_ON_OUTPUT_MAX 0xFFFFFFFF
265#define SCTPCTL_ADD_MORE_ON_OUTPUT_DEFAULT SCTP_DEFAULT_ADD_MORE
266
267/* outgoing_streams: Default number of outgoing streams */
268#define SCTPCTL_OUTGOING_STREAMS 33
269#define SCTPCTL_OUTGOING_STREAMS_DESC "Default number of outgoing streams"
270#define SCTPCTL_OUTGOING_STREAMS_MIN 1
271#define SCTPCTL_OUTGOING_STREAMS_MAX 65535
272#define SCTPCTL_OUTGOING_STREAMS_DEFAULT SCTP_OSTREAM_INITIAL
273
274/* cmt_on_off: CMT on/off flag */
275#define SCTPCTL_CMT_ON_OFF 34
276#define SCTPCTL_CMT_ON_OFF_DESC "CMT on/off flag"
277#define SCTPCTL_CMT_ON_OFF_MIN 0
278#define SCTPCTL_CMT_ON_OFF_MAX 1
279#define SCTPCTL_CMT_ON_OFF_DEFAULT 0
280
281/* cwnd_maxburst: Use a CWND adjusting maxburst */
282#define SCTPCTL_CWND_MAXBURST 35
283#define SCTPCTL_CWND_MAXBURST_DESC "Use a CWND adjusting maxburst"
284#define SCTPCTL_CWND_MAXBURST_MIN 0
285#define SCTPCTL_CWND_MAXBURST_MAX 1
286#define SCTPCTL_CWND_MAXBURST_DEFAULT 1
287
288/* early_fast_retran: Early Fast Retransmit with timer */
289#define SCTPCTL_EARLY_FAST_RETRAN 36
290#define SCTPCTL_EARLY_FAST_RETRAN_DESC "Early Fast Retransmit with timer"
291#define SCTPCTL_EARLY_FAST_RETRAN_MIN 0
292#define SCTPCTL_EARLY_FAST_RETRAN_MAX 0xFFFFFFFF
293#define SCTPCTL_EARLY_FAST_RETRAN_DEFAULT 0
294
295/* deadlock_detect: SMP Deadlock detection on/off */
296#define SCTPCTL_DEADLOCK_DETECT 37
297#define SCTPCTL_DEADLOCK_DETECT_DESC "SMP Deadlock detection on/off"
298#define SCTPCTL_DEADLOCK_DETECT_MIN 0
299#define SCTPCTL_DEADLOCK_DETECT_MAX 1
300#define SCTPCTL_DEADLOCK_DETECT_DEFAULT 0
301
302/* early_fast_retran_msec: Early Fast Retransmit minimum timer value */
303#define SCTPCTL_EARLY_FAST_RETRAN_MSEC 38
304#define SCTPCTL_EARLY_FAST_RETRAN_MSEC_DESC "Early Fast Retransmit minimum timer value"
305#define SCTPCTL_EARLY_FAST_RETRAN_MSEC_MIN 0
306#define SCTPCTL_EARLY_FAST_RETRAN_MSEC_MAX 0xFFFFFFFF
307#define SCTPCTL_EARLY_FAST_RETRAN_MSEC_DEFAULT SCTP_MINFR_MSEC_TIMER
308
309/* asconf_auth_nochk: Disable SCTP ASCONF AUTH requirement */
310#define SCTPCTL_ASCONF_AUTH_NOCHK 39
311#define SCTPCTL_ASCONF_AUTH_NOCHK_DESC "Disable SCTP ASCONF AUTH requirement"
312#define SCTPCTL_ASCONF_AUTH_NOCHK_MIN 0
313#define SCTPCTL_ASCONF_AUTH_NOCHK_MAX 1
314#define SCTPCTL_ASCONF_AUTH_NOCHK_DEFAULT 0
315
316/* auth_disable: Disable SCTP AUTH function */
317#define SCTPCTL_AUTH_DISABLE 40
318#define SCTPCTL_AUTH_DISABLE_DESC "Disable SCTP AUTH function"
319#define SCTPCTL_AUTH_DISABLE_MIN 0
320#define SCTPCTL_AUTH_DISABLE_MAX 1
321#define SCTPCTL_AUTH_DISABLE_DEFAULT 0
322
323/* nat_friendly: SCTP NAT friendly operation */
324#define SCTPCTL_NAT_FRIENDLY 41
325#define SCTPCTL_NAT_FRIENDLY_DESC "SCTP NAT friendly operation"
326#define SCTPCTL_NAT_FRIENDLY_MIN 0
327#define SCTPCTL_NAT_FRIENDLY_MAX 1
328#define SCTPCTL_NAT_FRIENDLY_DEFAULT 1
329
330/* abc_l_var: SCTP ABC max increase per SACK (L) */
331#define SCTPCTL_ABC_L_VAR 42
332#define SCTPCTL_ABC_L_VAR_DESC "SCTP ABC max increase per SACK (L)"
333#define SCTPCTL_ABC_L_VAR_MIN 0
334#define SCTPCTL_ABC_L_VAR_MAX 0xFFFFFFFF
335#define SCTPCTL_ABC_L_VAR_DEFAULT 1
336
337/* max_chained_mbufs: Default max number of small mbufs on a chain */
338#define SCTPCTL_MAX_CHAINED_MBUFS 43
339#define SCTPCTL_MAX_CHAINED_MBUFS_DESC "Default max number of small mbufs on a chain"
340#define SCTPCTL_MAX_CHAINED_MBUFS_MIN 0
341#define SCTPCTL_MAX_CHAINED_MBUFS_MAX 0xFFFFFFFF
342#define SCTPCTL_MAX_CHAINED_MBUFS_DEFAULT SCTP_DEFAULT_MBUFS_IN_CHAIN
343
344/* cmt_use_dac: CMT DAC on/off flag */
345#define SCTPCTL_CMT_USE_DAC 44
346#define SCTPCTL_CMT_USE_DAC_DESC "CMT DAC on/off flag"
347#define SCTPCTL_CMT_USE_DAC_MIN 0
348#define SCTPCTL_CMT_USE_DAC_MAX 1
349#define SCTPCTL_CMT_USE_DAC_DEFAULT 0
350
351/* do_sctp_drain: Should SCTP respond to the drain calls */
352#define SCTPCTL_DO_SCTP_DRAIN 45
353#define SCTPCTL_DO_SCTP_DRAIN_DESC "Should SCTP respond to the drain calls"
354#define SCTPCTL_DO_SCTP_DRAIN_MIN 0
355#define SCTPCTL_DO_SCTP_DRAIN_MAX 1
356#define SCTPCTL_DO_SCTP_DRAIN_DEFAULT 1
357
358/* hb_max_burst: Confirmation Heartbeat max burst? */
359#define SCTPCTL_HB_MAX_BURST 46
360#define SCTPCTL_HB_MAX_BURST_DESC "Confirmation Heartbeat max burst?"
361#define SCTPCTL_HB_MAX_BURST_MIN 1
362#define SCTPCTL_HB_MAX_BURST_MAX 0xFFFFFFFF
363#define SCTPCTL_HB_MAX_BURST_DEFAULT SCTP_DEF_MAX_BURST
364
365/* abort_at_limit: When one-2-one hits qlimit abort */
366#define SCTPCTL_ABORT_AT_LIMIT 47
367#define SCTPCTL_ABORT_AT_LIMIT_DESC "When one-2-one hits qlimit abort"
368#define SCTPCTL_ABORT_AT_LIMIT_MIN 0
369#define SCTPCTL_ABORT_AT_LIMIT_MAX 1
370#define SCTPCTL_ABORT_AT_LIMIT_DEFAULT 0
371
372/* strict_data_order: Enforce strict data ordering, abort if control inside data */
373#define SCTPCTL_STRICT_DATA_ORDER 48
374#define SCTPCTL_STRICT_DATA_ORDER_DESC "Enforce strict data ordering, abort if control inside data"
375#define SCTPCTL_STRICT_DATA_ORDER_MIN 0
376#define SCTPCTL_STRICT_DATA_ORDER_MAX 1
377#define SCTPCTL_STRICT_DATA_ORDER_DEFAULT 0
378
379/* min_residual: min residual in a data fragment leftover */
380#define SCTPCTL_MIN_REDIDUAL 49
381#define SCTPCTL_MIN_RESIDUAL_DESC "Minimum residual data chunk in second part of split"
382#define SCTPCTL_MIN_RESIDUAL_MIN 20
383#define SCTPCTL_MIN_RESIDUAL_MAX 65535
384#define SCTPCTL_MIN_RESIDUAL_DEFAULT 1452
385
386/* max_retran_chunk: max chunk retransmissions */
387#define SCTPCTL_MAX_RETRAN_CHUNK 50
388#define SCTPCTL_MAX_RETRAN_CHUNK_DESC "Maximum times an unlucky chunk can be retran'd before assoc abort"
389#define SCTPCTL_MAX_RETRAN_CHUNK_MIN 0
390#define SCTPCTL_MAX_RETRAN_CHUNK_MAX 65535
391#define SCTPCTL_MAX_RETRAN_CHUNK_DEFAULT 30
392
393
394#ifdef SCTP_DEBUG
395/* debug: Configure debug output */
396#define SCTPCTL_DEBUG 51
397#define SCTPCTL_DEBUG_DESC "Configure debug output"
398#define SCTPCTL_DEBUG_MIN 0
399#define SCTPCTL_DEBUG_MAX 0xFFFFFFFF
400#define SCTPCTL_DEBUG_DEFAULT 0
401
402
403#define SCTPCTL_MAXID 51
404#else
405#define SCTPCTL_MAXID 50
406#endif
407
408/*
409 * Names for SCTP sysctl objects variables.
410 * Must match the OIDs above.
411 */
412#ifdef SCTP_DEBUG
413#define SCTPCTL_NAMES { \
414 { 0, 0 }, \
415 { "sendspace", CTLTYPE_INT }, \
416 { "recvspace", CTLTYPE_INT }, \
417 { "autoasconf", CTLTYPE_INT }, \
418 { "ecn_enable", CTLTYPE_INT }, \
419 { "ecn_nonce", CTLTYPE_INT }, \
420 { "strict_sack", CTLTYPE_INT }, \
421 { "looback_nocsum", CTLTYPE_INT }, \
422 { "strict_init", CTLTYPE_INT }, \
423 { "peer_chkoh", CTLTYPE_INT }, \
424 { "maxburst", CTLTYPE_INT }, \
425 { "maxchunks", CTLTYPE_INT }, \
426 { "delayed_sack_time", CTLTYPE_INT }, \
427 { "sack_freq", CTLTYPE_INT }, \
428 { "heartbeat_interval", CTLTYPE_INT }, \
429 { "pmtu_raise_time", CTLTYPE_INT }, \
430 { "shutdown_guard_time", CTLTYPE_INT }, \
431 { "secret_lifetime", CTLTYPE_INT }, \
432 { "rto_max", CTLTYPE_INT }, \
433 { "rto_min", CTLTYPE_INT }, \
434 { "rto_initial", CTLTYPE_INT }, \
435 { "init_rto_max", CTLTYPE_INT }, \
436 { "valid_cookie_life", CTLTYPE_INT }, \
437 { "init_rtx_max", CTLTYPE_INT }, \
438 { "assoc_rtx_max", CTLTYPE_INT }, \
439 { "path_rtx_max", CTLTYPE_INT }, \
440 { "outgoing_streams", CTLTYPE_INT }, \
441 { "cmt_on_off", CTLTYPE_INT }, \
442 { "cwnd_maxburst", CTLTYPE_INT }, \
443 { "early_fast_retran", CTLTYPE_INT }, \
444 { "deadlock_detect", CTLTYPE_INT }, \
445 { "early_fast_retran_msec", CTLTYPE_INT }, \
446 { "asconf_auth_nochk", CTLTYPE_INT }, \
447 { "auth_disable", CTLTYPE_INT }, \
448 { "nat_friendly", CTLTYPE_INT }, \
449 { "abc_l_var", CTLTYPE_INT }, \
450 { "max_mbuf_chain", CTLTYPE_INT }, \
451 { "cmt_use_dac", CTLTYPE_INT }, \
452 { "do_sctp_drain", CTLTYPE_INT }, \
453 { "warm_crc_table", CTLTYPE_INT }, \
454 { "abort_at_limit", CTLTYPE_INT }, \
455 { "strict_data_order", CTLTYPE_INT }, \
456 { "tcbhashsize", CTLTYPE_INT }, \
457 { "pcbhashsize", CTLTYPE_INT }, \
458 { "chunkscale", CTLTYPE_INT }, \
459 { "min_split_point", CTLTYPE_INT }, \
460 { "add_more_on_output", CTLTYPE_INT }, \
461 { "sys_resource", CTLTYPE_INT }, \
462 { "asoc_resource", CTLTYPE_INT }, \
463 { "min_residual", CTLTYPE_INT }, \
464 { "max_retran_chunk", CTLTYPE_INT }, \
465 { "debug", CTLTYPE_INT }, \
466}
467#else
468#define SCTPCTL_NAMES { \
469 { 0, 0 }, \
470 { "sendspace", CTLTYPE_INT }, \
471 { "recvspace", CTLTYPE_INT }, \
472 { "autoasconf", CTLTYPE_INT }, \
473 { "ecn_enable", CTLTYPE_INT }, \
474 { "ecn_nonce", CTLTYPE_INT }, \
475 { "strict_sack", CTLTYPE_INT }, \
476 { "looback_nocsum", CTLTYPE_INT }, \
477 { "strict_init", CTLTYPE_INT }, \
478 { "peer_chkoh", CTLTYPE_INT }, \
479 { "maxburst", CTLTYPE_INT }, \
480 { "maxchunks", CTLTYPE_INT }, \
481 { "delayed_sack_time", CTLTYPE_INT }, \
482 { "sack_freq", CTLTYPE_INT }, \
483 { "heartbeat_interval", CTLTYPE_INT }, \
484 { "pmtu_raise_time", CTLTYPE_INT }, \
485 { "shutdown_guard_time", CTLTYPE_INT }, \
486 { "secret_lifetime", CTLTYPE_INT }, \
487 { "rto_max", CTLTYPE_INT }, \
488 { "rto_min", CTLTYPE_INT }, \
489 { "rto_initial", CTLTYPE_INT }, \
490 { "init_rto_max", CTLTYPE_INT }, \
491 { "valid_cookie_life", CTLTYPE_INT }, \
492 { "init_rtx_max", CTLTYPE_INT }, \
493 { "assoc_rtx_max", CTLTYPE_INT }, \
494 { "path_rtx_max", CTLTYPE_INT }, \
495 { "outgoing_streams", CTLTYPE_INT }, \
496 { "cmt_on_off", CTLTYPE_INT }, \
497 { "cwnd_maxburst", CTLTYPE_INT }, \
498 { "early_fast_retran", CTLTYPE_INT }, \
499 { "deadlock_detect", CTLTYPE_INT }, \
500 { "early_fast_retran_msec", CTLTYPE_INT }, \
501 { "asconf_auth_nochk", CTLTYPE_INT }, \
502 { "auth_disable", CTLTYPE_INT }, \
503 { "nat_friendly", CTLTYPE_INT }, \
504 { "abc_l_var", CTLTYPE_INT }, \
505 { "max_mbuf_chain", CTLTYPE_INT }, \
506 { "cmt_use_dac", CTLTYPE_INT }, \
507 { "do_sctp_drain", CTLTYPE_INT }, \
508 { "warm_crc_table", CTLTYPE_INT }, \
509 { "abort_at_limit", CTLTYPE_INT }, \
510 { "strict_data_order", CTLTYPE_INT }, \
511 { "tcbhashsize", CTLTYPE_INT }, \
512 { "pcbhashsize", CTLTYPE_INT }, \
513 { "chunkscale", CTLTYPE_INT }, \
514 { "min_split_point", CTLTYPE_INT }, \
515 { "add_more_on_output", CTLTYPE_INT }, \
516 { "sys_resource", CTLTYPE_INT }, \
517 { "asoc_resource", CTLTYPE_INT }, \
518 { "min_residual", CTLTYPE_INT }, \
519 { "max_retran_chunk", CTLTYPE_INT }, \
520}
521#endif
522
523
524#if defined(_KERNEL)
525
526/*
527 * variable definitions
528 */
529extern uint32_t sctp_sendspace;
530extern uint32_t sctp_recvspace;
531extern uint32_t sctp_auto_asconf;
532extern uint32_t sctp_ecn_enable;
533extern uint32_t sctp_ecn_nonce;
534extern uint32_t sctp_strict_sacks;
535extern uint32_t sctp_no_csum_on_loopback;
536extern uint32_t sctp_strict_init;
537extern uint32_t sctp_peer_chunk_oh;
538extern uint32_t sctp_max_burst_default;
539extern uint32_t sctp_max_chunks_on_queue;
540extern uint32_t sctp_hashtblsize;
541extern uint32_t sctp_pcbtblsize;
542extern uint32_t sctp_min_split_point;
543extern uint32_t sctp_chunkscale;
544extern uint32_t sctp_delayed_sack_time_default;
545extern uint32_t sctp_sack_freq_default;
546extern uint32_t sctp_system_free_resc_limit;
547extern uint32_t sctp_asoc_free_resc_limit;
548extern uint32_t sctp_heartbeat_interval_default;
549extern uint32_t sctp_pmtu_raise_time_default;
550extern uint32_t sctp_shutdown_guard_time_default;
551extern uint32_t sctp_secret_lifetime_default;
552extern uint32_t sctp_rto_max_default;
553extern uint32_t sctp_rto_min_default;
554extern uint32_t sctp_rto_initial_default;
555extern uint32_t sctp_init_rto_max_default;
556extern uint32_t sctp_valid_cookie_life_default;
557extern uint32_t sctp_init_rtx_max_default;
558extern uint32_t sctp_assoc_rtx_max_default;
559extern uint32_t sctp_path_rtx_max_default;
560extern uint32_t sctp_add_more_threshold;
561extern uint32_t sctp_nr_outgoing_streams_default;
562extern uint32_t sctp_cmt_on_off;
563extern uint32_t sctp_use_cwnd_based_maxburst;
564extern uint32_t sctp_early_fr;
565extern uint32_t sctp_use_rttvar_cc;
566extern uint32_t sctp_says_check_for_deadlock;
567extern uint32_t sctp_early_fr_msec;
568extern uint32_t sctp_asconf_auth_nochk;
569extern uint32_t sctp_auth_disable;
570extern uint32_t sctp_nat_friendly;
571extern uint32_t sctp_L2_abc_variable;
572extern uint32_t sctp_mbuf_threshold_count;
573extern uint32_t sctp_cmt_use_dac;
574extern uint32_t sctp_do_drain;
575extern uint32_t sctp_hb_maxburst;
576extern uint32_t sctp_abort_if_one_2_one_hits_limit;
577extern uint32_t sctp_strict_data_order;
578extern uint32_t sctp_min_residual;
579extern uint32_t sctp_max_retran_chunk;
580
581#if defined(SCTP_DEBUG)
582extern uint32_t sctp_debug_on;
583
584#endif
585
586extern struct sctpstat sctpstat;
587
588
589#ifdef SYSCTL_DECL
590SYSCTL_DECL(_net_inet_sctp);
591#endif
592
593#endif /* _KERNEL */
594#endif /* __sctp_sysctl_h__ */
2 * Copyright (c) 2007, 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: head/sys/netinet/sctp_sysctl.h 168299 2007-04-03 11:15:32Z rrs $");
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 1
45#define SCTPCTL_MAXDGRAM_DESC "Maximum outgoing SCTP buffer size"
46#define SCTPCTL_MAXDGRAM_MIN 0
47#define SCTPCTL_MAXDGRAM_MAX 0xFFFFFFFF
48#define SCTPCTL_MAXDGRAM_DEFAULT 262144 /* 256k */
49
50/* recvspace: Maximum incoming SCTP buffer size */
51#define SCTPCTL_RECVSPACE 2
52#define SCTPCTL_RECVSPACE_DESC "Maximum incoming SCTP buffer size"
53#define SCTPCTL_RECVSPACE_MIN 0
54#define SCTPCTL_RECVSPACE_MAX 0xFFFFFFFF
55#define SCTPCTL_RECVSPACE_DEFAULT 262144 /* 256k */
56
57/* autoasconf: Enable SCTP Auto-ASCONF */
58#define SCTPCTL_AUTOASCONF 3
59#define SCTPCTL_AUTOASCONF_DESC "Enable SCTP Auto-ASCONF"
60#define SCTPCTL_AUTOASCONF_MIN 0
61#define SCTPCTL_AUTOASCONF_MAX 1
62#define SCTPCTL_AUTOASCONF_DEFAULT SCTP_DEFAULT_AUTO_ASCONF
63
64/* ecn_enable: Enable SCTP ECN */
65#define SCTPCTL_ECN_ENABLE 4
66#define SCTPCTL_ECN_ENABLE_DESC "Enable SCTP ECN"
67#define SCTPCTL_ECN_ENABLE_MIN 0
68#define SCTPCTL_ECN_ENABLE_MAX 1
69#define SCTPCTL_ECN_ENABLE_DEFAULT 1
70
71/* ecn_nonce: Enable SCTP ECN Nonce */
72#define SCTPCTL_ECN_NONCE 5
73#define SCTPCTL_ECN_NONCE_DESC "Enable SCTP ECN Nonce"
74#define SCTPCTL_ECN_NONCE_MIN 0
75#define SCTPCTL_ECN_NONCE_MAX 1
76#define SCTPCTL_ECN_NONCE_DEFAULT 0
77
78/* strict_sacks: Enable SCTP Strict SACK checking */
79#define SCTPCTL_STRICT_SACKS 6
80#define SCTPCTL_STRICT_SACKS_DESC "Enable SCTP Strict SACK checking"
81#define SCTPCTL_STRICT_SACKS_MIN 0
82#define SCTPCTL_STRICT_SACKS_MAX 1
83#define SCTPCTL_STRICT_SACKS_DEFAULT 0
84
85/* loopback_nocsum: Enable NO Csum on packets sent on loopback */
86#define SCTPCTL_LOOPBACK_NOCSUM 7
87#define SCTPCTL_LOOPBACK_NOCSUM_DESC "Enable NO Csum on packets sent on loopback"
88#define SCTPCTL_LOOPBACK_NOCSUM_MIN 0
89#define SCTPCTL_LOOPBACK_NOCSUM_MAX 1
90#define SCTPCTL_LOOPBACK_NOCSUM_DEFAULT 1
91
92/* strict_init: Enable strict INIT/INIT-ACK singleton enforcement */
93#define SCTPCTL_STRICT_INIT 8
94#define SCTPCTL_STRICT_INIT_DESC "Enable strict INIT/INIT-ACK singleton enforcement"
95#define SCTPCTL_STRICT_INIT_MIN 0
96#define SCTPCTL_STRICT_INIT_MAX 1
97#define SCTPCTL_STRICT_INIT_DEFAULT 1
98
99/* peer_chkoh: Amount to debit peers rwnd per chunk sent */
100#define SCTPCTL_PEER_CHKOH 9
101#define SCTPCTL_PEER_CHKOH_DESC "Amount to debit peers rwnd per chunk sent"
102#define SCTPCTL_PEER_CHKOH_MIN 0
103#define SCTPCTL_PEER_CHKOH_MAX 0xFFFFFFFF
104#define SCTPCTL_PEER_CHKOH_DEFAULT 0 /* sizeof struct mbuf */
105
106/* maxburst: Default max burst for sctp endpoints */
107#define SCTPCTL_MAXBURST 10
108#define SCTPCTL_MAXBURST_DESC "Default max burst for sctp endpoints"
109#define SCTPCTL_MAXBURST_MIN 1
110#define SCTPCTL_MAXBURST_MAX 0xFFFFFFFF
111#define SCTPCTL_MAXBURST_DEFAULT SCTP_DEF_MAX_BURST
112
113/* maxchunks: Default max chunks on queue per asoc */
114#define SCTPCTL_MAXCHUNKS 11
115#define SCTPCTL_MAXCHUNKS_DESC "Default max chunks on queue per asoc"
116#define SCTPCTL_MAXCHUNKS_MIN 0
117#define SCTPCTL_MAXCHUNKS_MAX 0xFFFFFFFF
118#define SCTPCTL_MAXCHUNKS_DEFAULT SCTP_ASOC_MAX_CHUNKS_ON_QUEUE
119
120/* tcbhashsize: Tuneable for Hash table sizes */
121#define SCTPCTL_TCBHASHSIZE 12
122#define SCTPCTL_TCBHASHSIZE_DESC "Tunable for TCB hash table sizes"
123#define SCTPCTL_TCBHASHSIZE_MIN 1
124#define SCTPCTL_TCBHASHSIZE_MAX 0xFFFFFFFF
125#define SCTPCTL_TCBHASHSIZE_DEFAULT SCTP_TCBHASHSIZE
126
127/* pcbhashsize: Tuneable for PCB Hash table sizes */
128#define SCTPCTL_PCBHASHSIZE 13
129#define SCTPCTL_PCBHASHSIZE_DESC "Tunable for PCB hash table sizes"
130#define SCTPCTL_PCBHASHSIZE_MIN 1
131#define SCTPCTL_PCBHASHSIZE_MAX 0xFFFFFFFF
132#define SCTPCTL_PCBHASHSIZE_DEFAULT SCTP_PCBHASHSIZE
133
134/* min_split_point: Minimum size when splitting a chunk */
135#define SCTPCTL_MIN_SPLIT_POINT 14
136#define SCTPCTL_MIN_SPLIT_POINT_DESC "Minimum size when splitting a chunk"
137#define SCTPCTL_MIN_SPLIT_POINT_MIN 0
138#define SCTPCTL_MIN_SPLIT_POINT_MAX 0xFFFFFFFF
139#define SCTPCTL_MIN_SPLIT_POINT_DEFAULT SCTP_DEFAULT_SPLIT_POINT_MIN
140
141/* chunkscale: Tuneable for Scaling of number of chunks and messages */
142#define SCTPCTL_CHUNKSCALE 15
143#define SCTPCTL_CHUNKSCALE_DESC "Tuneable for Scaling of number of chunks and messages"
144#define SCTPCTL_CHUNKSCALE_MIN 1
145#define SCTPCTL_CHUNKSCALE_MAX 0xFFFFFFFF
146#define SCTPCTL_CHUNKSCALE_DEFAULT SCTP_CHUNKQUEUE_SCALE
147
148/* delayed_sack_time: Default delayed SACK timer in msec */
149#define SCTPCTL_DELAYED_SACK_TIME 16
150#define SCTPCTL_DELAYED_SACK_TIME_DESC "Default delayed SACK timer in msec"
151#define SCTPCTL_DELAYED_SACK_TIME_MIN 0
152#define SCTPCTL_DELAYED_SACK_TIME_MAX 0xFFFFFFFF
153#define SCTPCTL_DELAYED_SACK_TIME_DEFAULT SCTP_RECV_MSEC
154
155/* sack_freq: Default SACK frequency */
156#define SCTPCTL_SACK_FREQ 17
157#define SCTPCTL_SACK_FREQ_DESC "Default SACK frequency"
158#define SCTPCTL_SACK_FREQ_MIN 0
159#define SCTPCTL_SACK_FREQ_MAX 0xFFFFFFFF
160#define SCTPCTL_SACK_FREQ_DEFAULT SCTP_DEFAULT_SACK_FREQ
161
162/* sys_resource: Max number of cached resources in the system */
163#define SCTPCTL_SYS_RESOURCE 18
164#define SCTPCTL_SYS_RESOURCE_DESC "Max number of cached resources in the system"
165#define SCTPCTL_SYS_RESOURCE_MIN 0
166#define SCTPCTL_SYS_RESOURCE_MAX 0xFFFFFFFF
167#define SCTPCTL_SYS_RESOURCE_DEFAULT SCTP_DEF_SYSTEM_RESC_LIMIT
168
169/* asoc_resource: Max number of cached resources in an asoc */
170#define SCTPCTL_ASOC_RESOURCE 19
171#define SCTPCTL_ASOC_RESOURCE_DESC "Max number of cached resources in an asoc"
172#define SCTPCTL_ASOC_RESOURCE_MIN 0
173#define SCTPCTL_ASOC_RESOURCE_MAX 0xFFFFFFFF
174#define SCTPCTL_ASOC_RESOURCE_DEFAULT SCTP_DEF_ASOC_RESC_LIMIT
175
176/* heartbeat_interval: Default heartbeat interval in msec */
177#define SCTPCTL_HEARTBEAT_INTERVAL 20
178#define SCTPCTL_HEARTBEAT_INTERVAL_DESC "Default heartbeat interval in msec"
179#define SCTPCTL_HEARTBEAT_INTERVAL_MIN 0
180#define SCTPCTL_HEARTBEAT_INTERVAL_MAX 0xFFFFFFFF
181#define SCTPCTL_HEARTBEAT_INTERVAL_DEFAULT SCTP_HB_DEFAULT_MSEC
182
183/* pmtu_raise_time: Default PMTU raise timer in sec */
184#define SCTPCTL_PMTU_RAISE_TIME 21
185#define SCTPCTL_PMTU_RAISE_TIME_DESC "Default PMTU raise timer in sec"
186#define SCTPCTL_PMTU_RAISE_TIME_MIN 0
187#define SCTPCTL_PMTU_RAISE_TIME_MAX 0xFFFFFFFF
188#define SCTPCTL_PMTU_RAISE_TIME_DEFAULT SCTP_DEF_PMTU_RAISE_SEC
189
190/* shutdown_guard_time: Default shutdown guard timer in sec */
191#define SCTPCTL_SHUTDOWN_GUARD_TIME 22
192#define SCTPCTL_SHUTDOWN_GUARD_TIME_DESC "Default shutdown guard timer in sec"
193#define SCTPCTL_SHUTDOWN_GUARD_TIME_MIN 0
194#define SCTPCTL_SHUTDOWN_GUARD_TIME_MAX 0xFFFFFFFF
195#define SCTPCTL_SHUTDOWN_GUARD_TIME_DEFAULT SCTP_DEF_MAX_SHUTDOWN_SEC
196
197/* secret_lifetime: Default secret lifetime in sec */
198#define SCTPCTL_SECRET_LIFETIME 23
199#define SCTPCTL_SECRET_LIFETIME_DESC "Default secret lifetime in sec"
200#define SCTPCTL_SECRET_LIFETIME_MIN 0
201#define SCTPCTL_SECRET_LIFETIME_MAX 0xFFFFFFFF
202#define SCTPCTL_SECRET_LIFETIME_DEFAULT SCTP_DEFAULT_SECRET_LIFE_SEC
203
204/* rto_max: Default maximum retransmission timeout in msec */
205#define SCTPCTL_RTO_MAX 24
206#define SCTPCTL_RTO_MAX_DESC "Default maximum retransmission timeout in msec"
207#define SCTPCTL_RTO_MAX_MIN 0
208#define SCTPCTL_RTO_MAX_MAX 0xFFFFFFFF
209#define SCTPCTL_RTO_MAX_DEFAULT SCTP_RTO_UPPER_BOUND
210
211/* rto_min: Default minimum retransmission timeout in msec */
212#define SCTPCTL_RTO_MIN 25
213#define SCTPCTL_RTO_MIN_DESC "Default minimum retransmission timeout in msec"
214#define SCTPCTL_RTO_MIN_MIN 0
215#define SCTPCTL_RTO_MIN_MAX 0xFFFFFFFF
216#define SCTPCTL_RTO_MIN_DEFAULT SCTP_RTO_LOWER_BOUND
217
218/* rto_initial: Default initial retransmission timeout in msec */
219#define SCTPCTL_RTO_INITIAL 26
220#define SCTPCTL_RTO_INITIAL_DESC "Default initial retransmission timeout in msec"
221#define SCTPCTL_RTO_INITIAL_MIN 0
222#define SCTPCTL_RTO_INITIAL_MAX 0xFFFFFFFF
223#define SCTPCTL_RTO_INITIAL_DEFAULT SCTP_RTO_INITIAL
224
225/* init_rto_max: Default maximum retransmission timeout during association setup in msec */
226#define SCTPCTL_INIT_RTO_MAX 27
227#define SCTPCTL_INIT_RTO_MAX_DESC "Default maximum retransmission timeout during association setup in msec"
228#define SCTPCTL_INIT_RTO_MAX_MIN 0
229#define SCTPCTL_INIT_RTO_MAX_MAX 0xFFFFFFFF
230#define SCTPCTL_INIT_RTO_MAX_DEFAULT SCTP_RTO_UPPER_BOUND
231
232/* valid_cookie_life: Default cookie lifetime in sec */
233#define SCTPCTL_VALID_COOKIE_LIFE 28
234#define SCTPCTL_VALID_COOKIE_LIFE_DESC "Default cookie lifetime in sec"
235#define SCTPCTL_VALID_COOKIE_LIFE_MIN 0
236#define SCTPCTL_VALID_COOKIE_LIFE_MAX 0xFFFFFFFF
237#define SCTPCTL_VALID_COOKIE_LIFE_DEFAULT SCTP_DEFAULT_COOKIE_LIFE
238
239/* init_rtx_max: Default maximum number of retransmission for INIT chunks */
240#define SCTPCTL_INIT_RTX_MAX 29
241#define SCTPCTL_INIT_RTX_MAX_DESC "Default maximum number of retransmission for INIT chunks"
242#define SCTPCTL_INIT_RTX_MAX_MIN 0
243#define SCTPCTL_INIT_RTX_MAX_MAX 0xFFFFFFFF
244#define SCTPCTL_INIT_RTX_MAX_DEFAULT SCTP_DEF_MAX_INIT
245
246/* assoc_rtx_max: Default maximum number of retransmissions per association */
247#define SCTPCTL_ASSOC_RTX_MAX 30
248#define SCTPCTL_ASSOC_RTX_MAX_DESC "Default maximum number of retransmissions per association"
249#define SCTPCTL_ASSOC_RTX_MAX_MIN 0
250#define SCTPCTL_ASSOC_RTX_MAX_MAX 0xFFFFFFFF
251#define SCTPCTL_ASSOC_RTX_MAX_DEFAULT SCTP_DEF_MAX_SEND
252
253/* path_rtx_max: Default maximum of retransmissions per path */
254#define SCTPCTL_PATH_RTX_MAX 31
255#define SCTPCTL_PATH_RTX_MAX_DESC "Default maximum of retransmissions per path"
256#define SCTPCTL_PATH_RTX_MAX_MIN 0
257#define SCTPCTL_PATH_RTX_MAX_MAX 0xFFFFFFFF
258#define SCTPCTL_PATH_RTX_MAX_DEFAULT SCTP_DEF_MAX_PATH_RTX
259
260/* add_more_on_output: When space wise is it worthwhile to try to add more to a socket send buffer */
261#define SCTPCTL_ADD_MORE_ON_OUTPUT 32
262#define SCTPCTL_ADD_MORE_ON_OUTPUT_DESC "When space wise is it worthwhile to try to add more to a socket send buffer"
263#define SCTPCTL_ADD_MORE_ON_OUTPUT_MIN 0
264#define SCTPCTL_ADD_MORE_ON_OUTPUT_MAX 0xFFFFFFFF
265#define SCTPCTL_ADD_MORE_ON_OUTPUT_DEFAULT SCTP_DEFAULT_ADD_MORE
266
267/* outgoing_streams: Default number of outgoing streams */
268#define SCTPCTL_OUTGOING_STREAMS 33
269#define SCTPCTL_OUTGOING_STREAMS_DESC "Default number of outgoing streams"
270#define SCTPCTL_OUTGOING_STREAMS_MIN 1
271#define SCTPCTL_OUTGOING_STREAMS_MAX 65535
272#define SCTPCTL_OUTGOING_STREAMS_DEFAULT SCTP_OSTREAM_INITIAL
273
274/* cmt_on_off: CMT on/off flag */
275#define SCTPCTL_CMT_ON_OFF 34
276#define SCTPCTL_CMT_ON_OFF_DESC "CMT on/off flag"
277#define SCTPCTL_CMT_ON_OFF_MIN 0
278#define SCTPCTL_CMT_ON_OFF_MAX 1
279#define SCTPCTL_CMT_ON_OFF_DEFAULT 0
280
281/* cwnd_maxburst: Use a CWND adjusting maxburst */
282#define SCTPCTL_CWND_MAXBURST 35
283#define SCTPCTL_CWND_MAXBURST_DESC "Use a CWND adjusting maxburst"
284#define SCTPCTL_CWND_MAXBURST_MIN 0
285#define SCTPCTL_CWND_MAXBURST_MAX 1
286#define SCTPCTL_CWND_MAXBURST_DEFAULT 1
287
288/* early_fast_retran: Early Fast Retransmit with timer */
289#define SCTPCTL_EARLY_FAST_RETRAN 36
290#define SCTPCTL_EARLY_FAST_RETRAN_DESC "Early Fast Retransmit with timer"
291#define SCTPCTL_EARLY_FAST_RETRAN_MIN 0
292#define SCTPCTL_EARLY_FAST_RETRAN_MAX 0xFFFFFFFF
293#define SCTPCTL_EARLY_FAST_RETRAN_DEFAULT 0
294
295/* deadlock_detect: SMP Deadlock detection on/off */
296#define SCTPCTL_DEADLOCK_DETECT 37
297#define SCTPCTL_DEADLOCK_DETECT_DESC "SMP Deadlock detection on/off"
298#define SCTPCTL_DEADLOCK_DETECT_MIN 0
299#define SCTPCTL_DEADLOCK_DETECT_MAX 1
300#define SCTPCTL_DEADLOCK_DETECT_DEFAULT 0
301
302/* early_fast_retran_msec: Early Fast Retransmit minimum timer value */
303#define SCTPCTL_EARLY_FAST_RETRAN_MSEC 38
304#define SCTPCTL_EARLY_FAST_RETRAN_MSEC_DESC "Early Fast Retransmit minimum timer value"
305#define SCTPCTL_EARLY_FAST_RETRAN_MSEC_MIN 0
306#define SCTPCTL_EARLY_FAST_RETRAN_MSEC_MAX 0xFFFFFFFF
307#define SCTPCTL_EARLY_FAST_RETRAN_MSEC_DEFAULT SCTP_MINFR_MSEC_TIMER
308
309/* asconf_auth_nochk: Disable SCTP ASCONF AUTH requirement */
310#define SCTPCTL_ASCONF_AUTH_NOCHK 39
311#define SCTPCTL_ASCONF_AUTH_NOCHK_DESC "Disable SCTP ASCONF AUTH requirement"
312#define SCTPCTL_ASCONF_AUTH_NOCHK_MIN 0
313#define SCTPCTL_ASCONF_AUTH_NOCHK_MAX 1
314#define SCTPCTL_ASCONF_AUTH_NOCHK_DEFAULT 0
315
316/* auth_disable: Disable SCTP AUTH function */
317#define SCTPCTL_AUTH_DISABLE 40
318#define SCTPCTL_AUTH_DISABLE_DESC "Disable SCTP AUTH function"
319#define SCTPCTL_AUTH_DISABLE_MIN 0
320#define SCTPCTL_AUTH_DISABLE_MAX 1
321#define SCTPCTL_AUTH_DISABLE_DEFAULT 0
322
323/* nat_friendly: SCTP NAT friendly operation */
324#define SCTPCTL_NAT_FRIENDLY 41
325#define SCTPCTL_NAT_FRIENDLY_DESC "SCTP NAT friendly operation"
326#define SCTPCTL_NAT_FRIENDLY_MIN 0
327#define SCTPCTL_NAT_FRIENDLY_MAX 1
328#define SCTPCTL_NAT_FRIENDLY_DEFAULT 1
329
330/* abc_l_var: SCTP ABC max increase per SACK (L) */
331#define SCTPCTL_ABC_L_VAR 42
332#define SCTPCTL_ABC_L_VAR_DESC "SCTP ABC max increase per SACK (L)"
333#define SCTPCTL_ABC_L_VAR_MIN 0
334#define SCTPCTL_ABC_L_VAR_MAX 0xFFFFFFFF
335#define SCTPCTL_ABC_L_VAR_DEFAULT 1
336
337/* max_chained_mbufs: Default max number of small mbufs on a chain */
338#define SCTPCTL_MAX_CHAINED_MBUFS 43
339#define SCTPCTL_MAX_CHAINED_MBUFS_DESC "Default max number of small mbufs on a chain"
340#define SCTPCTL_MAX_CHAINED_MBUFS_MIN 0
341#define SCTPCTL_MAX_CHAINED_MBUFS_MAX 0xFFFFFFFF
342#define SCTPCTL_MAX_CHAINED_MBUFS_DEFAULT SCTP_DEFAULT_MBUFS_IN_CHAIN
343
344/* cmt_use_dac: CMT DAC on/off flag */
345#define SCTPCTL_CMT_USE_DAC 44
346#define SCTPCTL_CMT_USE_DAC_DESC "CMT DAC on/off flag"
347#define SCTPCTL_CMT_USE_DAC_MIN 0
348#define SCTPCTL_CMT_USE_DAC_MAX 1
349#define SCTPCTL_CMT_USE_DAC_DEFAULT 0
350
351/* do_sctp_drain: Should SCTP respond to the drain calls */
352#define SCTPCTL_DO_SCTP_DRAIN 45
353#define SCTPCTL_DO_SCTP_DRAIN_DESC "Should SCTP respond to the drain calls"
354#define SCTPCTL_DO_SCTP_DRAIN_MIN 0
355#define SCTPCTL_DO_SCTP_DRAIN_MAX 1
356#define SCTPCTL_DO_SCTP_DRAIN_DEFAULT 1
357
358/* hb_max_burst: Confirmation Heartbeat max burst? */
359#define SCTPCTL_HB_MAX_BURST 46
360#define SCTPCTL_HB_MAX_BURST_DESC "Confirmation Heartbeat max burst?"
361#define SCTPCTL_HB_MAX_BURST_MIN 1
362#define SCTPCTL_HB_MAX_BURST_MAX 0xFFFFFFFF
363#define SCTPCTL_HB_MAX_BURST_DEFAULT SCTP_DEF_MAX_BURST
364
365/* abort_at_limit: When one-2-one hits qlimit abort */
366#define SCTPCTL_ABORT_AT_LIMIT 47
367#define SCTPCTL_ABORT_AT_LIMIT_DESC "When one-2-one hits qlimit abort"
368#define SCTPCTL_ABORT_AT_LIMIT_MIN 0
369#define SCTPCTL_ABORT_AT_LIMIT_MAX 1
370#define SCTPCTL_ABORT_AT_LIMIT_DEFAULT 0
371
372/* strict_data_order: Enforce strict data ordering, abort if control inside data */
373#define SCTPCTL_STRICT_DATA_ORDER 48
374#define SCTPCTL_STRICT_DATA_ORDER_DESC "Enforce strict data ordering, abort if control inside data"
375#define SCTPCTL_STRICT_DATA_ORDER_MIN 0
376#define SCTPCTL_STRICT_DATA_ORDER_MAX 1
377#define SCTPCTL_STRICT_DATA_ORDER_DEFAULT 0
378
379/* min_residual: min residual in a data fragment leftover */
380#define SCTPCTL_MIN_REDIDUAL 49
381#define SCTPCTL_MIN_RESIDUAL_DESC "Minimum residual data chunk in second part of split"
382#define SCTPCTL_MIN_RESIDUAL_MIN 20
383#define SCTPCTL_MIN_RESIDUAL_MAX 65535
384#define SCTPCTL_MIN_RESIDUAL_DEFAULT 1452
385
386/* max_retran_chunk: max chunk retransmissions */
387#define SCTPCTL_MAX_RETRAN_CHUNK 50
388#define SCTPCTL_MAX_RETRAN_CHUNK_DESC "Maximum times an unlucky chunk can be retran'd before assoc abort"
389#define SCTPCTL_MAX_RETRAN_CHUNK_MIN 0
390#define SCTPCTL_MAX_RETRAN_CHUNK_MAX 65535
391#define SCTPCTL_MAX_RETRAN_CHUNK_DEFAULT 30
392
393
394#ifdef SCTP_DEBUG
395/* debug: Configure debug output */
396#define SCTPCTL_DEBUG 51
397#define SCTPCTL_DEBUG_DESC "Configure debug output"
398#define SCTPCTL_DEBUG_MIN 0
399#define SCTPCTL_DEBUG_MAX 0xFFFFFFFF
400#define SCTPCTL_DEBUG_DEFAULT 0
401
402
403#define SCTPCTL_MAXID 51
404#else
405#define SCTPCTL_MAXID 50
406#endif
407
408/*
409 * Names for SCTP sysctl objects variables.
410 * Must match the OIDs above.
411 */
412#ifdef SCTP_DEBUG
413#define SCTPCTL_NAMES { \
414 { 0, 0 }, \
415 { "sendspace", CTLTYPE_INT }, \
416 { "recvspace", CTLTYPE_INT }, \
417 { "autoasconf", CTLTYPE_INT }, \
418 { "ecn_enable", CTLTYPE_INT }, \
419 { "ecn_nonce", CTLTYPE_INT }, \
420 { "strict_sack", CTLTYPE_INT }, \
421 { "looback_nocsum", CTLTYPE_INT }, \
422 { "strict_init", CTLTYPE_INT }, \
423 { "peer_chkoh", CTLTYPE_INT }, \
424 { "maxburst", CTLTYPE_INT }, \
425 { "maxchunks", CTLTYPE_INT }, \
426 { "delayed_sack_time", CTLTYPE_INT }, \
427 { "sack_freq", CTLTYPE_INT }, \
428 { "heartbeat_interval", CTLTYPE_INT }, \
429 { "pmtu_raise_time", CTLTYPE_INT }, \
430 { "shutdown_guard_time", CTLTYPE_INT }, \
431 { "secret_lifetime", CTLTYPE_INT }, \
432 { "rto_max", CTLTYPE_INT }, \
433 { "rto_min", CTLTYPE_INT }, \
434 { "rto_initial", CTLTYPE_INT }, \
435 { "init_rto_max", CTLTYPE_INT }, \
436 { "valid_cookie_life", CTLTYPE_INT }, \
437 { "init_rtx_max", CTLTYPE_INT }, \
438 { "assoc_rtx_max", CTLTYPE_INT }, \
439 { "path_rtx_max", CTLTYPE_INT }, \
440 { "outgoing_streams", CTLTYPE_INT }, \
441 { "cmt_on_off", CTLTYPE_INT }, \
442 { "cwnd_maxburst", CTLTYPE_INT }, \
443 { "early_fast_retran", CTLTYPE_INT }, \
444 { "deadlock_detect", CTLTYPE_INT }, \
445 { "early_fast_retran_msec", CTLTYPE_INT }, \
446 { "asconf_auth_nochk", CTLTYPE_INT }, \
447 { "auth_disable", CTLTYPE_INT }, \
448 { "nat_friendly", CTLTYPE_INT }, \
449 { "abc_l_var", CTLTYPE_INT }, \
450 { "max_mbuf_chain", CTLTYPE_INT }, \
451 { "cmt_use_dac", CTLTYPE_INT }, \
452 { "do_sctp_drain", CTLTYPE_INT }, \
453 { "warm_crc_table", CTLTYPE_INT }, \
454 { "abort_at_limit", CTLTYPE_INT }, \
455 { "strict_data_order", CTLTYPE_INT }, \
456 { "tcbhashsize", CTLTYPE_INT }, \
457 { "pcbhashsize", CTLTYPE_INT }, \
458 { "chunkscale", CTLTYPE_INT }, \
459 { "min_split_point", CTLTYPE_INT }, \
460 { "add_more_on_output", CTLTYPE_INT }, \
461 { "sys_resource", CTLTYPE_INT }, \
462 { "asoc_resource", CTLTYPE_INT }, \
463 { "min_residual", CTLTYPE_INT }, \
464 { "max_retran_chunk", CTLTYPE_INT }, \
465 { "debug", CTLTYPE_INT }, \
466}
467#else
468#define SCTPCTL_NAMES { \
469 { 0, 0 }, \
470 { "sendspace", CTLTYPE_INT }, \
471 { "recvspace", CTLTYPE_INT }, \
472 { "autoasconf", CTLTYPE_INT }, \
473 { "ecn_enable", CTLTYPE_INT }, \
474 { "ecn_nonce", CTLTYPE_INT }, \
475 { "strict_sack", CTLTYPE_INT }, \
476 { "looback_nocsum", CTLTYPE_INT }, \
477 { "strict_init", CTLTYPE_INT }, \
478 { "peer_chkoh", CTLTYPE_INT }, \
479 { "maxburst", CTLTYPE_INT }, \
480 { "maxchunks", CTLTYPE_INT }, \
481 { "delayed_sack_time", CTLTYPE_INT }, \
482 { "sack_freq", CTLTYPE_INT }, \
483 { "heartbeat_interval", CTLTYPE_INT }, \
484 { "pmtu_raise_time", CTLTYPE_INT }, \
485 { "shutdown_guard_time", CTLTYPE_INT }, \
486 { "secret_lifetime", CTLTYPE_INT }, \
487 { "rto_max", CTLTYPE_INT }, \
488 { "rto_min", CTLTYPE_INT }, \
489 { "rto_initial", CTLTYPE_INT }, \
490 { "init_rto_max", CTLTYPE_INT }, \
491 { "valid_cookie_life", CTLTYPE_INT }, \
492 { "init_rtx_max", CTLTYPE_INT }, \
493 { "assoc_rtx_max", CTLTYPE_INT }, \
494 { "path_rtx_max", CTLTYPE_INT }, \
495 { "outgoing_streams", CTLTYPE_INT }, \
496 { "cmt_on_off", CTLTYPE_INT }, \
497 { "cwnd_maxburst", CTLTYPE_INT }, \
498 { "early_fast_retran", CTLTYPE_INT }, \
499 { "deadlock_detect", CTLTYPE_INT }, \
500 { "early_fast_retran_msec", CTLTYPE_INT }, \
501 { "asconf_auth_nochk", CTLTYPE_INT }, \
502 { "auth_disable", CTLTYPE_INT }, \
503 { "nat_friendly", CTLTYPE_INT }, \
504 { "abc_l_var", CTLTYPE_INT }, \
505 { "max_mbuf_chain", CTLTYPE_INT }, \
506 { "cmt_use_dac", CTLTYPE_INT }, \
507 { "do_sctp_drain", CTLTYPE_INT }, \
508 { "warm_crc_table", CTLTYPE_INT }, \
509 { "abort_at_limit", CTLTYPE_INT }, \
510 { "strict_data_order", CTLTYPE_INT }, \
511 { "tcbhashsize", CTLTYPE_INT }, \
512 { "pcbhashsize", CTLTYPE_INT }, \
513 { "chunkscale", CTLTYPE_INT }, \
514 { "min_split_point", CTLTYPE_INT }, \
515 { "add_more_on_output", CTLTYPE_INT }, \
516 { "sys_resource", CTLTYPE_INT }, \
517 { "asoc_resource", CTLTYPE_INT }, \
518 { "min_residual", CTLTYPE_INT }, \
519 { "max_retran_chunk", CTLTYPE_INT }, \
520}
521#endif
522
523
524#if defined(_KERNEL)
525
526/*
527 * variable definitions
528 */
529extern uint32_t sctp_sendspace;
530extern uint32_t sctp_recvspace;
531extern uint32_t sctp_auto_asconf;
532extern uint32_t sctp_ecn_enable;
533extern uint32_t sctp_ecn_nonce;
534extern uint32_t sctp_strict_sacks;
535extern uint32_t sctp_no_csum_on_loopback;
536extern uint32_t sctp_strict_init;
537extern uint32_t sctp_peer_chunk_oh;
538extern uint32_t sctp_max_burst_default;
539extern uint32_t sctp_max_chunks_on_queue;
540extern uint32_t sctp_hashtblsize;
541extern uint32_t sctp_pcbtblsize;
542extern uint32_t sctp_min_split_point;
543extern uint32_t sctp_chunkscale;
544extern uint32_t sctp_delayed_sack_time_default;
545extern uint32_t sctp_sack_freq_default;
546extern uint32_t sctp_system_free_resc_limit;
547extern uint32_t sctp_asoc_free_resc_limit;
548extern uint32_t sctp_heartbeat_interval_default;
549extern uint32_t sctp_pmtu_raise_time_default;
550extern uint32_t sctp_shutdown_guard_time_default;
551extern uint32_t sctp_secret_lifetime_default;
552extern uint32_t sctp_rto_max_default;
553extern uint32_t sctp_rto_min_default;
554extern uint32_t sctp_rto_initial_default;
555extern uint32_t sctp_init_rto_max_default;
556extern uint32_t sctp_valid_cookie_life_default;
557extern uint32_t sctp_init_rtx_max_default;
558extern uint32_t sctp_assoc_rtx_max_default;
559extern uint32_t sctp_path_rtx_max_default;
560extern uint32_t sctp_add_more_threshold;
561extern uint32_t sctp_nr_outgoing_streams_default;
562extern uint32_t sctp_cmt_on_off;
563extern uint32_t sctp_use_cwnd_based_maxburst;
564extern uint32_t sctp_early_fr;
565extern uint32_t sctp_use_rttvar_cc;
566extern uint32_t sctp_says_check_for_deadlock;
567extern uint32_t sctp_early_fr_msec;
568extern uint32_t sctp_asconf_auth_nochk;
569extern uint32_t sctp_auth_disable;
570extern uint32_t sctp_nat_friendly;
571extern uint32_t sctp_L2_abc_variable;
572extern uint32_t sctp_mbuf_threshold_count;
573extern uint32_t sctp_cmt_use_dac;
574extern uint32_t sctp_do_drain;
575extern uint32_t sctp_hb_maxburst;
576extern uint32_t sctp_abort_if_one_2_one_hits_limit;
577extern uint32_t sctp_strict_data_order;
578extern uint32_t sctp_min_residual;
579extern uint32_t sctp_max_retran_chunk;
580
581#if defined(SCTP_DEBUG)
582extern uint32_t sctp_debug_on;
583
584#endif
585
586extern struct sctpstat sctpstat;
587
588
589#ifdef SYSCTL_DECL
590SYSCTL_DECL(_net_inet_sctp);
591#endif
592
593#endif /* _KERNEL */
594#endif /* __sctp_sysctl_h__ */