/freebsd/sys/netinet/ |
H A D | sctp_sysctl.c | 54 SCTP_BASE_SYSCTL(sctp_sendspace) = SCTPCTL_MAXDGRAM_DEFAULT; in sctp_init_sysctls() 55 SCTP_BASE_SYSCTL(sctp_recvspace) = SCTPCTL_RECVSPACE_DEFAULT; in sctp_init_sysctls() 56 SCTP_BASE_SYSCTL(sctp_auto_asconf) = SCTPCTL_AUTOASCONF_DEFAULT; in sctp_init_sysctls() 57 SCTP_BASE_SYSCTL(sctp_multiple_asconfs) = SCTPCTL_MULTIPLEASCONFS_DEFAULT; in sctp_init_sysctls() 58 SCTP_BASE_SYSCTL(sctp_ecn_enable) = SCTPCTL_ECN_ENABLE_DEFAULT; in sctp_init_sysctls() 59 SCTP_BASE_SYSCTL(sctp_pr_enable) = SCTPCTL_PR_ENABLE_DEFAULT; in sctp_init_sysctls() 60 SCTP_BASE_SYSCTL(sctp_auth_enable) = SCTPCTL_AUTH_ENABLE_DEFAULT; in sctp_init_sysctls() 61 SCTP_BASE_SYSCTL(sctp_asconf_enable) = SCTPCTL_ASCONF_ENABLE_DEFAULT; in sctp_init_sysctls() 62 SCTP_BASE_SYSCTL(sctp_reconfig_enable) = SCTPCTL_RECONFIG_ENABLE_DEFAULT; in sctp_init_sysctls() 63 SCTP_BASE_SYSCTL(sctp_nrsack_enable) = SCTPCTL_NRSACK_ENABLE_DEFAULT; in sctp_init_sysctls() [all …]
|
H A D | sctp_cc_functions.c | 80 cwnd_in_mtu = SCTP_BASE_SYSCTL(sctp_initial_cwnd); in sctp_set_initial_cc_param() 106 if (SCTP_BASE_SYSCTL(sctp_logging_level) & in sctp_set_initial_cc_param() 204 if (SCTP_BASE_SYSCTL(sctp_logging_level) & SCTP_CWND_MONITOR_ENABLE) { in sctp_cwnd_update_after_fr() 621 bw_shift = SCTP_BASE_SYSCTL(sctp_rttvar_bw); in cc_bw_limit() 669 rtt_offset = net->cc_mod.rtcc.lbw_rtt >> SCTP_BASE_SYSCTL(sctp_rttvar_rtt); in cc_bw_limit() 753 if (SCTP_BASE_SYSCTL(sctp_logging_level) & SCTP_CWND_LOGGING_ENABLE) { in sctp_cwnd_update_after_sack_common() 841 (uint64_t)SCTP_BASE_SYSCTL(sctp_L2_abc_variable) * in sctp_cwnd_update_after_sack_common() 864 (uint64_t)SCTP_BASE_SYSCTL(sctp_L2_abc_variable) * in sctp_cwnd_update_after_sack_common() 882 (uint64_t)SCTP_BASE_SYSCTL(sctp_L2_abc_variable)) >> in sctp_cwnd_update_after_sack_common() 899 if (incr > net->mtu * SCTP_BASE_SYSCTL(sctp_L2_abc_variable)) { in sctp_cwnd_update_after_sack_common() [all …]
|
H A D | sctp_indata.c | 288 if (SCTP_BASE_SYSCTL(sctp_do_drain) == 0) { in sctp_mark_non_revokable() 394 if (SCTP_BASE_SYSCTL(sctp_logging_level) & SCTP_STR_LOGGING_ENABLE) { in sctp_place_control_in_stream() 508 if (SCTP_BASE_SYSCTL(sctp_logging_level) & SCTP_STR_LOGGING_ENABLE) { in sctp_queue_data_to_stream() 543 if (SCTP_BASE_SYSCTL(sctp_logging_level) & SCTP_STR_LOGGING_ENABLE) { in sctp_queue_data_to_stream() 595 if (SCTP_BASE_SYSCTL(sctp_logging_level) & SCTP_STR_LOGGING_ENABLE) { in sctp_queue_data_to_stream() 1743 if (SCTP_BASE_SYSCTL(sctp_logging_level) & SCTP_MAP_LOGGING_ENABLE) { in sctp_process_a_data_chunk() 1926 asoc->cnt_msg_on_sb) >= SCTP_BASE_SYSCTL(sctp_max_chunks_on_queue)) || in sctp_process_a_data_chunk() 1945 asoc->cnt_msg_on_sb) >= SCTP_BASE_SYSCTL(sctp_max_chunks_on_queue)) { in sctp_process_a_data_chunk() 2028 if (SCTP_BASE_SYSCTL(sctp_logging_level) & SCTP_MBUF_LOGGING_ENABLE) { in sctp_process_a_data_chunk() 2132 if (SCTP_BASE_SYSCTL(sctp_logging_level) & SCTP_STR_LOGGING_ENABLE) { in sctp_process_a_data_chunk() [all …]
|
H A D | sctp_timer.c | 120 if (SCTP_BASE_SYSCTL(sctp_logging_level) & SCTP_THRESHOLD_LOGGING) { in sctp_threshold_management() 130 if (SCTP_BASE_SYSCTL(sctp_logging_level) & SCTP_THRESHOLD_LOGGING) { in sctp_threshold_management() 151 op_err = sctp_generate_cause(SCTP_BASE_SYSCTL(sctp_diag_info_code), in sctp_threshold_management() 519 if (SCTP_BASE_SYSCTL(sctp_logging_level) & SCTP_FR_LOGGING_ENABLE) { in sctp_mark_all_for_resend() 540 if (SCTP_BASE_SYSCTL(sctp_logging_level) & SCTP_FR_LOGGING_ENABLE) { in sctp_mark_all_for_resend() 587 if (SCTP_BASE_SYSCTL(sctp_logging_level) & SCTP_FR_LOGGING_ENABLE) { in sctp_mark_all_for_resend() 599 if (SCTP_BASE_SYSCTL(sctp_logging_level) & SCTP_FR_LOGGING_ENABLE) { in sctp_mark_all_for_resend() 655 if (SCTP_BASE_SYSCTL(sctp_logging_level) & SCTP_FR_LOGGING_ENABLE) { in sctp_mark_all_for_resend() 667 if (SCTP_BASE_SYSCTL(sctp_logging_level) & SCTP_FLIGHT_LOGGING_ENABLE) { in sctp_mark_all_for_resend() 677 stcb->asoc.peers_rwnd += SCTP_BASE_SYSCTL(sctp_peer_chunk_oh); in sctp_mark_all_for_resend() [all …]
|
H A D | sctp_os_bsd.h | 144 #define SCTP_BASE_SYSCTL(__m) V_system_base_info.sctpsysctl.__m macro 152 if (SCTP_BASE_SYSCTL(sctp_debug_on) & level ) { \ 160 if (SCTP_BASE_SYSCTL(sctp_debug_on) & level ) { \ 171 #define SCTP_LTRACE_CHK(a, b, c, d) if(SCTP_BASE_SYSCTL(sctp_logging_level) & SCTP_LTRACE_CHUNK_ENA… 178 if (SCTP_BASE_SYSCTL(sctp_logging_level) & SCTP_LTRACE_ERROR_ENABLE) \ 182 if (SCTP_BASE_SYSCTL(sctp_logging_level) & SCTP_LTRACE_ERROR_ENABLE) \
|
H A D | sctp_pcb.c | 2297 inp->sctp_cmt_on_off = SCTP_BASE_SYSCTL(sctp_cmt_on_off); in sctp_inpcb_alloc() 2298 inp->ecn_supported = (uint8_t)SCTP_BASE_SYSCTL(sctp_ecn_enable); in sctp_inpcb_alloc() 2299 inp->prsctp_supported = (uint8_t)SCTP_BASE_SYSCTL(sctp_pr_enable); in sctp_inpcb_alloc() 2300 inp->auth_supported = (uint8_t)SCTP_BASE_SYSCTL(sctp_auth_enable); in sctp_inpcb_alloc() 2301 inp->asconf_supported = (uint8_t)SCTP_BASE_SYSCTL(sctp_asconf_enable); in sctp_inpcb_alloc() 2302 inp->reconfig_supported = (uint8_t)SCTP_BASE_SYSCTL(sctp_reconfig_enable); in sctp_inpcb_alloc() 2303 inp->nrsack_supported = (uint8_t)SCTP_BASE_SYSCTL(sctp_nrsack_enable); in sctp_inpcb_alloc() 2304 inp->pktdrop_supported = (uint8_t)SCTP_BASE_SYSCTL(sctp_pktdrop_enable); in sctp_inpcb_alloc() 2348 if (SCTP_BASE_SYSCTL(sctp_default_frag_interleave) == SCTP_FRAG_LEVEL_1) { in sctp_inpcb_alloc() 2351 } else if (SCTP_BASE_SYSCTL(sctp_default_frag_interleave) == SCTP_FRAG_LEVEL_2) { in sctp_inpcb_alloc() [all …]
|
H A D | sctp_lock_bsd.h | 273 if (SCTP_BASE_SYSCTL(sctp_logging_level) & SCTP_LOCK_LOGGING_ENABLE) \ 279 if (SCTP_BASE_SYSCTL(sctp_logging_level) & SCTP_LOCK_LOGGING_ENABLE) \ 325 if (SCTP_BASE_SYSCTL(sctp_logging_level) & SCTP_LOCK_LOGGING_ENABLE) \ 361 if (SCTP_BASE_SYSCTL(sctp_logging_level) & SCTP_LOCK_LOGGING_ENABLE) \
|
H A D | sctp_output.c | 3829 if (SCTP_BASE_SYSCTL(sctp_logging_level) & SCTP_MBUF_LOGGING_ENABLE) { in sctp_add_cookie() 3841 if (SCTP_BASE_SYSCTL(sctp_logging_level) & SCTP_MBUF_LOGGING_ENABLE) { in sctp_add_cookie() 4141 if (htons(SCTP_BASE_SYSCTL(sctp_udp_tunneling_port)) == 0) { in sctp_lowlevel_chunk_output() 4148 udp->uh_sport = htons(SCTP_BASE_SYSCTL(sctp_udp_tunneling_port)); in sctp_lowlevel_chunk_output() 4221 if (SCTP_BASE_SYSCTL(sctp_logging_level) & SCTP_LAST_PACKET_TRACING) in sctp_lowlevel_chunk_output() 4477 if (htons(SCTP_BASE_SYSCTL(sctp_udp_tunneling_port)) == 0) { in sctp_lowlevel_chunk_output() 4484 udp->uh_sport = htons(SCTP_BASE_SYSCTL(sctp_udp_tunneling_port)); in sctp_lowlevel_chunk_output() 4546 if (SCTP_BASE_SYSCTL(sctp_logging_level) & SCTP_LAST_PACKET_TRACING) in sctp_lowlevel_chunk_output() 4729 if (SCTP_BASE_SYSCTL(sctp_inits_include_nat_friendly)) { in sctp_send_initiate() 5368 *op_err = sctp_generate_cause(SCTP_BASE_SYSCTL(sctp_diag_info_code), "Address added"); in sctp_are_there_new_addresses() [all …]
|
H A D | sctp_input.c | 116 op_err = sctp_generate_cause(SCTP_BASE_SYSCTL(sctp_diag_info_code), in sctp_handle_init() 140 if (SCTP_BASE_SYSCTL(sctp_blackhole) == 0) { in sctp_handle_init() 141 op_err = sctp_generate_cause(SCTP_BASE_SYSCTL(sctp_diag_info_code), in sctp_handle_init() 260 …if (SCTP_BASE_SYSCTL(sctp_logging_level) & (SCTP_CWND_MONITOR_ENABLE | SCTP_CWND_LOGGING_ENABLE)) { in sctp_process_init() 332 if (SCTP_BASE_SYSCTL(sctp_logging_level) & SCTP_MAP_LOGGING_ENABLE) { in sctp_process_init() 471 op_err = sctp_generate_cause(SCTP_BASE_SYSCTL(sctp_diag_info_code), in sctp_process_init_ack() 501 if (SCTP_BASE_SYSCTL(sctp_logging_level) & SCTP_THRESHOLD_LOGGING) { in sctp_process_init_ack() 609 if (SCTP_BASE_SYSCTL(sctp_logging_level) & SCTP_THRESHOLD_LOGGING) { in sctp_handle_heartbeat_ack() 820 (cnt_hb_sent < SCTP_BASE_SYSCTL(sctp_hb_maxburst))) { in sctp_start_net_timers() 1304 if (SCTP_BASE_SYSCTL(sctp_logging_level) & SCTP_THRESHOLD_LOGGING) { in sctp_handle_init_ack() [all …]
|
H A D | sctputil.c | 2007 op_err = sctp_generate_cause(SCTP_BASE_SYSCTL(sctp_diag_info_code), in sctp_timeout_handler() 2994 if (SCTP_BASE_SYSCTL(sctp_logging_level) & SCTP_RTTVAR_LOGGING_ENABLE) { in sctp_calculate_rto() 3003 if (SCTP_BASE_SYSCTL(sctp_logging_level) & SCTP_RTTVAR_LOGGING_ENABLE) { in sctp_calculate_rto() 3702 if (SCTP_BASE_SYSCTL(sctp_logging_level) & SCTP_SB_LOGGING_ENABLE) { in sctp_notify_partial_delivery_indication() 3706 if (SCTP_BASE_SYSCTL(sctp_logging_level) & SCTP_SB_LOGGING_ENABLE) { in sctp_notify_partial_delivery_indication() 4598 if ((SCTP_BASE_SYSCTL(sctp_blackhole) == 0) || in sctp_handle_ootb() 4599 ((SCTP_BASE_SYSCTL(sctp_blackhole) == 1) && in sctp_handle_ootb() 4833 if (SCTP_BASE_SYSCTL(sctp_logging_level) & SCTP_SB_LOGGING_ENABLE) { in sctp_pull_off_control_to_new_inp() 4837 if (SCTP_BASE_SYSCTL(sctp_logging_level) & SCTP_SB_LOGGING_ENABLE) { in sctp_pull_off_control_to_new_inp() 4853 if (SCTP_BASE_SYSCTL(sctp_logging_level) & SCTP_SB_LOGGING_ENABLE) { in sctp_pull_off_control_to_new_inp() [all …]
|
H A D | sctp_ss_functions.c | 204 SCTP_BASE_SYSCTL(sctp_cmt_on_off) == 0) { in sctp_ss_default_select() 378 SCTP_BASE_SYSCTL(sctp_cmt_on_off) == 0) { in sctp_ss_rrp_packet_done() 544 SCTP_BASE_SYSCTL(sctp_cmt_on_off) == 0) { in sctp_ss_prio_select() 703 ((SCTP_BASE_SYSCTL(sctp_cmt_on_off) > 0) || in sctp_ss_fb_select() 704 (SCTP_BASE_SYSCTL(sctp_cmt_on_off) == 0 && in sctp_ss_fb_select() 902 SCTP_BASE_SYSCTL(sctp_cmt_on_off) == 0) { in sctp_ss_fcfs_select()
|
H A D | sctp_var.h | 148 if (((_stcb)->asoc.free_chunk_cnt > SCTP_BASE_SYSCTL(sctp_asoc_free_resc_limit)) || \ 149 (SCTP_BASE_INFO(ipi_free_chunks) > SCTP_BASE_SYSCTL(sctp_system_free_resc_limit))) { \
|
H A D | sctp_bsd_addr.c | 376 if (SCTP_BASE_SYSCTL(sctp_logging_level) & SCTP_MBUF_LOGGING_ENABLE) { in sctp_get_mbuf_for_msg()
|
H A D | sctp_asconf.c | 240 if (zero_address && SCTP_BASE_SYSCTL(sctp_nat_friendly)) { in sctp_process_asconf_add_ip() 405 if (zero_address && SCTP_BASE_SYSCTL(sctp_nat_friendly)) { in sctp_process_asconf_delete_ip() 528 if (zero_address && SCTP_BASE_SYSCTL(sctp_nat_friendly)) { in sctp_process_asconf_set_primary() 738 (cnt < SCTP_BASE_SYSCTL(sctp_hb_maxburst)), error); in sctp_handle_asconf() 1314 if (SCTP_BASE_SYSCTL(sctp_debug_on) & SCTP_DEBUG_ASCONF2) { in sctp_asconf_queue_mgmt() 1410 if (SCTP_BASE_SYSCTL(sctp_logging_level) & SCTP_THRESHOLD_LOGGING) { in sctp_asconf_queue_add()
|
H A D | sctp_usrreq.c | 66 SCTP_BASE_SYSCTL(sctp_max_chunks_on_queue) = (nmbclusters / 8); in sctp_init() 72 SCTP_BASE_SYSCTL(sctp_sendspace) = min(sb_max_adj, in sctp_init() 79 SCTP_BASE_SYSCTL(sctp_recvspace) = SCTP_BASE_SYSCTL(sctp_sendspace); in sctp_init() 152 if (SCTP_BASE_SYSCTL(sctp_logging_level) & SCTP_FLIGHT_LOGGING_ENABLE) { in sctp_pathmtu_adjustment() 468 error = SCTP_SORESERVE(so, SCTP_BASE_SYSCTL(sctp_sendspace), SCTP_BASE_SYSCTL(sctp_recvspace)); in sctp_attach() 3763 if ((SCTP_BASE_SYSCTL(sctp_auto_asconf) == 0) && 3911 if (SCTP_BASE_SYSCTL(sctp_cmt_on_off)) { 7198 if (SCTP_BASE_SYSCTL(sctp_logging_level) & SCTP_LOCK_LOGGING_ENABLE) {
|
H A D | sctp_auth.c | 47 #define SCTP_AUTH_DEBUG (SCTP_BASE_SYSCTL(sctp_debug_on) & SCTP_DEBUG_AUTH1) 48 #define SCTP_AUTH_DEBUG2 (SCTP_BASE_SYSCTL(sctp_debug_on) & SCTP_DEBUG_AUTH2)
|
/freebsd/sys/netinet6/ |
H A D | sctp6_usrreq.c | 82 if (SCTP_BASE_SYSCTL(sctp_logging_level) & SCTP_MBUF_LOGGING_ENABLE) { in sctp6_input_with_port() 87 if (SCTP_BASE_SYSCTL(sctp_logging_level) & SCTP_LAST_PACKET_TRACING) { in sctp6_input_with_port() 450 error = SCTP_SORESERVE(so, SCTP_BASE_SYSCTL(sctp_sendspace), SCTP_BASE_SYSCTL(sctp_recvspace)); in sctp6_attach()
|