sctp_sysctl.c (168124) | sctp_sysctl.c (168299) |
---|---|
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. --- 15 unchanged lines hidden (view full) --- 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> | 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. --- 15 unchanged lines hidden (view full) --- 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.c 168124 2007-03-31 11:47:30Z rrs $"); | 32__FBSDID("$FreeBSD: head/sys/netinet/sctp_sysctl.c 168299 2007-04-03 11:15:32Z rrs $"); |
33 34#include <netinet/sctp_os.h> 35#include <netinet/sctp_constants.h> 36#include <netinet/sctp_sysctl.h> 37#include <netinet/sctp_pcb.h> 38#include <netinet/sctputil.h> 39 40/* --- 45 unchanged lines hidden (view full) --- 86 87uint32_t sctp_min_split_point = SCTP_DEFAULT_SPLIT_POINT_MIN; 88uint32_t sctp_pcbtblsize = SCTP_PCBHASHSIZE; 89uint32_t sctp_hashtblsize = SCTP_TCBHASHSIZE; 90uint32_t sctp_chunkscale = SCTP_CHUNKQUEUE_SCALE; 91 92uint32_t sctp_cmt_on_off = 0; 93uint32_t sctp_cmt_use_dac = 0; | 33 34#include <netinet/sctp_os.h> 35#include <netinet/sctp_constants.h> 36#include <netinet/sctp_sysctl.h> 37#include <netinet/sctp_pcb.h> 38#include <netinet/sctputil.h> 39 40/* --- 45 unchanged lines hidden (view full) --- 86 87uint32_t sctp_min_split_point = SCTP_DEFAULT_SPLIT_POINT_MIN; 88uint32_t sctp_pcbtblsize = SCTP_PCBHASHSIZE; 89uint32_t sctp_hashtblsize = SCTP_TCBHASHSIZE; 90uint32_t sctp_chunkscale = SCTP_CHUNKQUEUE_SCALE; 91 92uint32_t sctp_cmt_on_off = 0; 93uint32_t sctp_cmt_use_dac = 0; |
94uint32_t sctp_max_retran_chunk = SCTPCTL_MAX_RETRAN_DEFAULT; | 94uint32_t sctp_max_retran_chunk = SCTPCTL_MAX_RETRAN_CHUNK_DEFAULT; |
95 96 97uint32_t sctp_L2_abc_variable = 1; 98uint32_t sctp_early_fr = 0; 99uint32_t sctp_early_fr_msec = SCTP_MINFR_MSEC_TIMER; 100uint32_t sctp_says_check_for_deadlock = 0; 101uint32_t sctp_asconf_auth_nochk = 0; 102uint32_t sctp_auth_disable = 0; --- 378 unchanged lines hidden (view full) --- 481SYSCTL_INT(_net_inet_sctp, OID_AUTO, abort_at_limit, CTLFLAG_RW, 482 &sctp_abort_if_one_2_one_hits_limit, 0, 483 "When one-2-one hits qlimit abort"); 484 485SYSCTL_INT(_net_inet_sctp, OID_AUTO, strict_data_order, CTLFLAG_RW, 486 &sctp_strict_data_order, 0, 487 "Enforce strict data ordering, abort if control inside data"); 488 | 95 96 97uint32_t sctp_L2_abc_variable = 1; 98uint32_t sctp_early_fr = 0; 99uint32_t sctp_early_fr_msec = SCTP_MINFR_MSEC_TIMER; 100uint32_t sctp_says_check_for_deadlock = 0; 101uint32_t sctp_asconf_auth_nochk = 0; 102uint32_t sctp_auth_disable = 0; --- 378 unchanged lines hidden (view full) --- 481SYSCTL_INT(_net_inet_sctp, OID_AUTO, abort_at_limit, CTLFLAG_RW, 482 &sctp_abort_if_one_2_one_hits_limit, 0, 483 "When one-2-one hits qlimit abort"); 484 485SYSCTL_INT(_net_inet_sctp, OID_AUTO, strict_data_order, CTLFLAG_RW, 486 &sctp_strict_data_order, 0, 487 "Enforce strict data ordering, abort if control inside data"); 488 |
489SYSCTL_INT(_net_inet_sctp, OID_AUTO, min_residual, CTLFLAG_RW, 490 &sctp_min_residual, 0, 491 SCTPCTL_MIN_RESIDUAL_DESC); 492 493 494SYSCTL_INT(_net_inet_sctp, OID_AUTO, max_retran_chunk, CTLFLAG_RW, 495 &sctp_max_retran_chunk, 0, 496 SCTPCTL_MAX_RETRAN_DESC); 497 498 499 500 | |
501SYSCTL_STRUCT(_net_inet_sctp, OID_AUTO, stats, CTLFLAG_RW, 502 &sctpstat, sctpstat, 503 "SCTP statistics (struct sctps_stat, netinet/sctp.h"); 504 505SYSCTL_PROC(_net_inet_sctp, OID_AUTO, assoclist, CTLFLAG_RD, 506 0, 0, sctp_assoclist, 507 "S,xassoc", "List of active SCTP associations"); 508 | 489SYSCTL_STRUCT(_net_inet_sctp, OID_AUTO, stats, CTLFLAG_RW, 490 &sctpstat, sctpstat, 491 "SCTP statistics (struct sctps_stat, netinet/sctp.h"); 492 493SYSCTL_PROC(_net_inet_sctp, OID_AUTO, assoclist, CTLFLAG_RD, 494 0, 0, sctp_assoclist, 495 "S,xassoc", "List of active SCTP associations"); 496 |
497SYSCTL_INT(_net_inet_sctp, OID_AUTO, min_residual, CTLFLAG_RW, 498 &sctp_min_residual, 0, 499 SCTPCTL_MIN_RESIDUAL_DESC); 500 501SYSCTL_INT(_net_inet_sctp, OID_AUTO, max_retran_chunk, CTLFLAG_RW, 502 &sctp_max_retran_chunk, 0, 503 SCTPCTL_MAX_RETRAN_CHUNK_DESC); 504 |
|
509#ifdef SCTP_DEBUG 510SYSCTL_INT(_net_inet_sctp, OID_AUTO, debug, CTLFLAG_RW, 511 &sctp_debug_on, 0, "Configure debug output"); 512#endif /* SCTP_DEBUG */ | 505#ifdef SCTP_DEBUG 506SYSCTL_INT(_net_inet_sctp, OID_AUTO, debug, CTLFLAG_RW, 507 &sctp_debug_on, 0, "Configure debug output"); 508#endif /* SCTP_DEBUG */ |