Home
last modified time | relevance | path

Searched refs:sctps (Results 1 – 25 of 26) sorted by relevance

12

/titanic_50/usr/src/uts/common/inet/sctp/
H A Dsctp_misc.c94 sctp_display_all(sctp_stack_t *sctps) in sctp_display_all() argument
98 mutex_enter(&sctps->sctps_g_lock); in sctp_display_all()
99 for (sctp_walker = list_head(&sctps->sctps_g_list); in sctp_display_all()
101 sctp_walker = (sctp_t *)list_next(&sctps->sctps_g_list, in sctp_display_all()
105 mutex_exit(&sctps->sctps_g_lock); in sctp_display_all()
113 sctp_find_listener_conf(sctp_stack_t *sctps, in_port_t port) in sctp_find_listener_conf() argument
118 mutex_enter(&sctps->sctps_listener_conf_lock); in sctp_find_listener_conf()
119 for (sl = list_head(&sctps->sctps_listener_conf); sl != NULL; in sctp_find_listener_conf()
120 sl = list_next(&sctps->sctps_listener_conf, sl)) { in sctp_find_listener_conf()
126 mutex_exit(&sctps->sctps_listener_conf_lock); in sctp_find_listener_conf()
[all …]
H A Dsctp.c135 #define SCTP_LINK(sctp, sctps) \ argument
136 mutex_enter(&(sctps)->sctps_g_lock); \
137 list_insert_tail(&sctps->sctps_g_list, (sctp)); \
138 mutex_exit(&(sctps)->sctps_g_lock);
140 #define SCTP_UNLINK(sctp, sctps) \ argument
141 mutex_enter(&(sctps)->sctps_g_lock); \
143 list_remove(&(sctps)->sctps_g_list, (sctp)); \
144 mutex_exit(&(sctps)->sctps_g_lock);
181 sctp_stack_t *sctps = psctp->sctp_sctps; in sctp_create_eager() local
184 sctps->sctps_netstack)) == NULL) { in sctp_create_eager()
[all …]
H A Dsctp_addr.c115 sctp_stack_t *sctps = sctp_ipif->sctp_ipif_ill-> in sctp_ipif_inactive() local
118 rw_enter(&sctps->sctps_g_ills_lock, RW_READER); in sctp_ipif_inactive()
119 rw_enter(&sctps->sctps_g_ipifs_lock, RW_WRITER); in sctp_ipif_inactive()
129 rw_exit(&sctps->sctps_g_ipifs_lock); in sctp_ipif_inactive()
130 rw_exit(&sctps->sctps_g_ills_lock); in sctp_ipif_inactive()
133 list_remove(&sctps->sctps_g_ipifs[hindex].sctp_ipif_list, in sctp_ipif_inactive()
135 sctps->sctps_g_ipifs[hindex].ipif_count--; in sctp_ipif_inactive()
136 sctps->sctps_g_ipifs_count--; in sctp_ipif_inactive()
141 if (rw_tryupgrade(&sctps->sctps_g_ills_lock) != 0) { in sctp_ipif_inactive()
142 rw_downgrade(&sctps->sctps_g_ipifs_lock); in sctp_ipif_inactive()
[all …]
H A Dsctp_hash.c60 void *), void *arg, boolean_t cansleep, sctp_stack_t *sctps);
63 sctp_hash_init(sctp_stack_t *sctps) in sctp_hash_init() argument
68 sctps->sctps_conn_hash_size = sctp_conn_hash_size; in sctp_hash_init()
70 if (!ISP2(sctps->sctps_conn_hash_size)) { in sctp_hash_init()
73 if (sctps->sctps_conn_hash_size < (1 << i)) in sctp_hash_init()
76 sctps->sctps_conn_hash_size = 1 << i; in sctp_hash_init()
78 if (sctps->sctps_conn_hash_size < SCTP_CONN_HASH_SIZE) { in sctp_hash_init()
79 sctps->sctps_conn_hash_size = SCTP_CONN_HASH_SIZE; in sctp_hash_init()
81 sctps->sctps_conn_hash_size); in sctp_hash_init()
83 sctps->sctps_conn_fanout = in sctp_hash_init()
[all …]
H A Dsctp_bind.c63 sctp_stack_t *sctps = sctp->sctp_sctps; in sctp_select_port() local
76 sctps->sctps_next_port_to_try, in sctp_select_port()
77 crgetzone(connp->conn_cred), sctps); in sctp_select_port()
94 if (*requested_port < sctps->sctps_smallest_nonpriv_port) { in sctp_select_port()
97 for (i = 0; i < sctps->sctps_g_num_epriv_ports; i++) { in sctp_select_port()
99 sctps->sctps_g_epriv_ports[i]) { in sctp_select_port()
128 sctp_stack_t *sctps = sctp->sctp_sctps; in sctp_listen() local
174 if (!list_is_empty(&sctps->sctps_listener_conf) && in sctp_listen()
179 ratio = sctp_find_listener_conf(sctps, in sctp_listen()
212 tf = &sctps->sctps_listen_fanout[SCTP_LISTEN_HASH( in sctp_listen()
[all …]
H A Dsctp_tunables.c49 sctp_stack_t *sctps = stack->netstack_sctp; in sctp_listener_conf_get() local
62 mutex_enter(&sctps->sctps_listener_conf_lock); in sctp_listener_conf_get()
63 for (sl = list_head(&sctps->sctps_listener_conf); sl != NULL; in sctp_listener_conf_get()
64 sl = list_next(&sctps->sctps_listener_conf, sl)) { in sctp_listener_conf_get()
81 mutex_exit(&sctps->sctps_listener_conf_lock); in sctp_listener_conf_get()
98 sctp_stack_t *sctps = stack->netstack_sctp; in sctp_listener_conf_add() local
110 mutex_enter(&sctps->sctps_listener_conf_lock); in sctp_listener_conf_add()
111 for (sl = list_head(&sctps->sctps_listener_conf); sl != NULL; in sctp_listener_conf_add()
112 sl = list_next(&sctps->sctps_listener_conf, sl)) { in sctp_listener_conf_add()
116 mutex_exit(&sctps->sctps_listener_conf_lock); in sctp_listener_conf_add()
[all …]
H A Dsctp_snmp.c60 sctp_stack_t *sctps; in sctp_kstat_update() local
72 sctps = ns->netstack_sctp; in sctp_kstat_update()
73 if (sctps == NULL) { in sctp_kstat_update()
93 mutex_enter(&sctps->sctps_g_lock); in sctp_kstat_update()
94 sctp = list_head(&sctps->sctps_g_list); in sctp_kstat_update()
99 sctp = list_next(&sctps->sctps_g_list, sctp); in sctp_kstat_update()
104 mutex_exit(&sctps->sctps_g_lock); in sctp_kstat_update()
120 SCTPS_UPDATE_MIB(sctps, sctpOutSCTPPkts, in sctp_kstat_update()
126 SCTPS_UPDATE_MIB(sctps, sctpOutCtrlChunks, in sctp_kstat_update()
134 SCTPS_UPDATE_MIB(sctps, sctpOutOrderChunks, in sctp_kstat_update()
[all …]
H A Dsctp_timer.c162 sctp_stack_t *sctps = sctp->sctp_sctps; in sctp_timer_alloc() local
184 SCTP_KSTAT(sctps, sctp_add_timer); in sctp_timer_alloc()
380 sctp_stack_t *sctps = sctp->sctp_sctps; in sctp_ack_timer() local
383 sctp->sctp_sack_toggle = sctps->sctps_deferred_acks_max; in sctp_ack_timer()
384 SCTPS_BUMP_MIB(sctps, sctpOutAckDelayed); in sctp_ack_timer()
398 sctp_stack_t *sctps = sctp->sctp_sctps; in sctp_heartbeat_timer() local
410 if (sctps->sctps_reclaim || !sctp_is_a_faddr_clean(sctp)) { in sctp_heartbeat_timer()
412 SCTPS_BUMP_MIB(sctps, sctpAborted); in sctp_heartbeat_timer()
413 SCTPS_BUMP_MIB(sctps, sctpTimHeartBeatDrop); in sctp_heartbeat_timer()
429 cnt = sctps->sctps_maxburst; in sctp_heartbeat_timer()
[all …]
H A Dsctp_conn.c66 sctp_stack_t *sctps = listener->sctp_sctps; in sctp_accept_comm() local
93 listener->sctp_prsctp_aware && sctps->sctps_prsctp_enabled) { in sctp_accept_comm()
125 sctp_conn_hash_insert(&sctps->sctps_conn_fanout[ in sctp_accept_comm()
126 SCTP_CONN_HASH(sctps, aconnp->conn_ports)], acceptor, 0); in sctp_accept_comm()
127 sctp_bind_hash_insert(&sctps->sctps_bind_fanout[ in sctp_accept_comm()
130 SCTP_ASSOC_EST(sctps, acceptor); in sctp_accept_comm()
143 sctp_stack_t *sctps; in sctp_conn_request() local
161 sctps = sctp->sctp_sctps; in sctp_conn_request()
174 SCTP_KSTAT(sctps, sctp_listen_cnt_drop); in sctp_conn_request()
201 SCTPS_BUMP_MIB(sctps, sctpListenDrop); in sctp_conn_request()
[all …]
H A Dsctp_error.c104 sctp_stack_t *sctps = sctp->sctp_sctps; in sctp_user_abort() local
118 SCTP_KSTAT(sctps, sctp_send_user_abort_failed); in sctp_user_abort()
152 SCTPS_BUMP_MIB(sctps, sctpAborted); in sctp_user_abort()
187 sctp_stack_t *sctps = sctp->sctp_sctps; in sctp_send_abort() local
204 hmp = allocb(sctps->sctps_wroff_xtra + ahlen, BPRI_MED); in sctp_send_abort()
211 p = hmp->b_rptr + sctps->sctps_wroff_xtra; in sctp_send_abort()
284 SCTPS_BUMP_MIB(sctps, sctpAborted); in sctp_send_abort()
299 ip_stack_t *ipst = sctps->sctps_netstack->netstack_ip; in sctp_send_abort()
337 sctp_stack_t *sctps = ns->netstack_sctp; in sctp_ootb_send_abort() local
353 mp = allocb(ahlen + sctps->sctps_wroff_xtra, BPRI_MED); in sctp_ootb_send_abort()
[all …]
H A Dsctp_stack.h110 #define SCTP_KSTAT(sctps, x) \ argument
111 ((sctps)->sctps_sc[CPU->cpu_seqid]->sctp_sc_stats.x++)
113 #define SCTPS_BUMP_MIB(sctps, x) \ argument
114 BUMP_MIB(&(sctps)->sctps_sc[CPU->cpu_seqid]->sctp_sc_mib, x)
116 #define SCTPS_UPDATE_MIB(sctps, x, y) \ argument
117 UPDATE_MIB(&(sctps)->sctps_sc[CPU->cpu_seqid]->sctp_sc_mib, x, y)
H A Dsctp_shutdown.c56 sctp_stack_t *sctps = sctp->sctp_sctps; in sctp_send_shutdown() local
113 SCTP_KSTAT(sctps, sctp_send_shutdown_failed); in sctp_send_shutdown()
196 sctp_stack_t *sctps = sctp->sctp_sctps; in sctp_shutdown_complete() local
201 SCTP_KSTAT(sctps, sctp_send_shutdown_comp_failed); in sctp_shutdown_complete()
237 sctp_stack_t *sctps = ns->netstack_sctp; in sctp_ootb_shutdown_ack() local
254 mp1 = allocb(MBLKL(mp) + sctps->sctps_wroff_xtra, BPRI_MED); in sctp_ootb_shutdown_ack()
259 mp1->b_rptr += sctps->sctps_wroff_xtra; in sctp_ootb_shutdown_ack()
287 ipha->ipha_ttl = (uchar_t)sctps->sctps_ipv4_ttl; in sctp_ootb_shutdown_ack()
309 ip6h->ip6_hops = (uchar_t)sctps->sctps_ipv6_hoplimit; in sctp_ootb_shutdown_ack()
372 sctp_stack_t *sctps = sctp->sctp_sctps; in sctp_send_shutdown_ack() local
[all …]
H A Dsctp_opt_data.c207 sctp_stack_t *sctps = sctp->sctp_sctps; in sctp_set_rtoinfo() local
220 (!ispriv && (srto->srto_initial < sctps->sctps_rto_initialg_low || in sctp_set_rtoinfo()
221 srto->srto_initial > sctps->sctps_rto_initialg_high))) { in sctp_set_rtoinfo()
225 (!ispriv && (srto->srto_max < sctps->sctps_rto_maxg_low || in sctp_set_rtoinfo()
226 srto->srto_max > sctps->sctps_rto_maxg_high))) { in sctp_set_rtoinfo()
230 (!ispriv && (srto->srto_min < sctps->sctps_rto_ming_low || in sctp_set_rtoinfo()
231 srto->srto_min > sctps->sctps_rto_ming_high))) { in sctp_set_rtoinfo()
288 sctp_stack_t *sctps = sctp->sctp_sctps; in sctp_set_assocparams() local
303 if (sap->sasoc_asocmaxrxt < sctps->sctps_pa_max_retr_low || in sctp_set_assocparams()
304 sap->sasoc_asocmaxrxt > sctps->sctps_pa_max_retr_high) { in sctp_set_assocparams()
[all …]
H A Dsctp_heartbeat.c52 sctp_stack_t *sctps = sctp->sctp_sctps; in sctp_return_heartbeat() local
71 SCTP_KSTAT(sctps, sctp_return_hb_failed); in sctp_return_heartbeat()
90 SCTP_KSTAT(sctps, sctp_return_hb_failed); in sctp_return_heartbeat()
127 sctp_stack_t *sctps = sctp->sctp_sctps; in sctp_send_heartbeat() local
139 SCTP_KSTAT(sctps, sctp_send_hb_failed); in sctp_send_heartbeat()
192 SCTPS_BUMP_MIB(sctps, sctpTimHeartBeatProbe); in sctp_send_heartbeat()
209 sctp_stack_t *sctps = sctp->sctp_sctps; in sctp_validate_peer() local
213 cnt = sctps->sctps_maxburst; in sctp_validate_peer()
H A Dsctp_common.c92 sctp_stack_t *sctps = sctp->sctp_sctps; in sctp_get_dest() local
118 if (!sctps->sctps_ignore_path_mtu) in sctp_get_dest()
218 sctps->sctps_slow_start_initial); in sctp_get_dest()
231 sctp_stack_t *sctps = sctp->sctp_sctps; in sctp_update_dce() local
233 ip_stack_t *ipst = sctps->sctps_netstack->netstack_ip; in sctp_update_dce()
252 if (sctps->sctps_rtt_updates != 0 && in sctp_update_dce()
253 fp->sf_rtt_updates >= sctps->sctps_rtt_updates) { in sctp_update_dce()
289 sctp_stack_t *sctps = sctp->sctp_sctps; in sctp_make_mp() local
320 mp = allocb(ipsctplen + sctps->sctps_wroff_xtra + trailer, BPRI_MED); in sctp_make_mp()
325 mp->b_rptr += sctps->sctps_wroff_xtra; in sctp_make_mp()
[all …]
H A Dsctp_init.c151 sctp_stack_t *sctps = sctp->sctp_sctps; in sctp_init_mp() local
168 if (sctp->sctp_prsctp_aware && sctps->sctps_prsctp_enabled) in sctp_init_mp()
180 SCTP_KSTAT(sctps, sctp_send_init_failed); in sctp_init_mp()
186 SCTP_KSTAT(sctps, sctp_send_init_failed); in sctp_init_mp()
218 if (sctp->sctp_prsctp_aware && sctps->sctps_prsctp_enabled) in sctp_init_mp()
H A Dsctp_cookie.c499 sctp_stack_t *sctps = sctp->sctp_sctps; in sctp_send_initack() local
582 sctp->sctp_prsctp_aware && sctps->sctps_prsctp_enabled) { in sctp_send_initack()
658 iackmp = allocb(ipsctplen + sctps->sctps_wroff_xtra, BPRI_MED); in sctp_send_initack()
667 p = (char *)(iackmp->b_rptr + sctps->sctps_wroff_xtra); in sctp_send_initack()
723 sctp->sctp_prsctp_aware && sctps->sctps_prsctp_enabled) { in sctp_send_initack()
806 if (sctps->sctps_new_secret_interval > 0 && in sctp_send_initack()
808 MSEC_TO_TICK(sctps->sctps_new_secret_interval)) <= nowt) { in sctp_send_initack()
884 sctp_stack_t *sctps = sctp->sctp_sctps; in sctp_send_cookie_ack() local
889 SCTP_KSTAT(sctps, sctp_send_cookie_ack_failed); in sctp_send_cookie_ack()
947 sctp_stack_t *sctps = sctp->sctp_sctps; in sctp_send_cookie_echo() local
[all …]
H A Dsctp_input.c1298 sctp_stack_t *sctps = sctp->sctp_sctps; in sctp_data_chunk() local
1352 SCTPS_BUMP_MIB(sctps, sctpInClosed); in sctp_data_chunk()
1826 sctp_stack_t *sctps = sctp->sctp_sctps; in sctp_make_sack() local
1837 acks_max = sctps->sctps_deferred_acks_max; in sctp_make_sack()
1874 SCTP_KSTAT(sctps, sctp_send_err_failed); in sctp_make_sack()
1875 SCTP_KSTAT(sctps, sctp_send_sack_failed); in sctp_make_sack()
1891 SCTP_KSTAT(sctps, sctp_send_sack_failed); in sctp_make_sack()
1921 sctp_stack_t *sctps = sctp->sctp_sctps; in sctp_sack() local
1942 SCTPS_BUMP_MIB(sctps, sctpOutAck); in sctp_sack()
1969 sctp_stack_t *sctps = sctp->sctp_sctps; in sctp_check_abandoned_msg() local
[all …]
H A Dsctp_output.c335 sctp_stack_t *sctps = sctp->sctp_sctps; in sctp_chunkify() local
346 xtralen = sctp->sctp_hdr_len + sctps->sctps_wroff_xtra + in sctp_chunkify()
349 xtralen = sctp->sctp_hdr6_len + sctps->sctps_wroff_xtra + in sctp_chunkify()
543 xtralen += sctps->sctps_wroff_xtra + sizeof (*sdc); in sctp_chunkify()
574 sctp_stack_t *sctps = sctp->sctp_sctps; in sctp_add_proto_hdr() local
608 (sctps->sctps_wroff_xtra + hdrlen + sacklen) || DB_REF(mp) > 2) { in sctp_add_proto_hdr()
616 nmp = allocb(sctps->sctps_wroff_xtra + hdrlen + sacklen, in sctp_add_proto_hdr()
623 nmp->b_rptr += sctps->sctps_wroff_xtra; in sctp_add_proto_hdr()
705 sctp_stack_t *sctps = sctp->sctp_sctps; in sctp_find_fast_rexmit_mblks() local
763 SCTPS_BUMP_MIB(sctps, sctpOutFastRetrans); in sctp_find_fast_rexmit_mblks()
[all …]
H A Dsctp_asconf.c393 sctp_stack_t *sctps = sctp->sctp_sctps; in sctp_input_asconf() local
420 SCTP_KSTAT(sctps, sctp_send_asconf_ack_failed); in sctp_input_asconf()
483 SCTP_KSTAT(sctps, sctp_cl_assoc_change); in sctp_input_asconf()
494 SCTP_KSTAT(sctps, sctp_cl_assoc_change); in sctp_input_asconf()
848 sctp_stack_t *sctps = sctp->sctp_sctps; in sctp_rc_timer() local
873 SCTPS_BUMP_MIB(sctps, sctpAborted); in sctp_rc_timer()
923 sctp_stack_t *sctps = sctp->sctp_sctps; in sctp_wput_asconf() local
943 SCTP_KSTAT(sctps, sctp_send_asconf_failed); in sctp_wput_asconf()
1159 sctp_stack_t *sctps = sctp->sctp_sctps; in sctp_addip_req() local
1164 if (!sctps->sctps_addip_enabled) { in sctp_addip_req()
[all …]
H A Dsctp_impl.h350 #define SCTP_CONN_HASH(sctps, ports) \ argument
352 ((sctps)->sctps_conn_hash_size - 1))
413 #define SCTPS_ASSOC_INC(sctps) \ argument
415 (uint64_t *)&(sctps)->sctps_sc[CPU->cpu_seqid]->sctp_sc_assoc_cnt)
417 #define SCTPS_ASSOC_DEC(sctps) \ argument
419 (uint64_t *)&(sctps)->sctps_sc[CPU->cpu_seqid]->sctp_sc_assoc_cnt)
421 #define SCTP_ASSOC_EST(sctps, sctp) \ argument
425 SCTPS_ASSOC_INC(sctps); \
/titanic_50/usr/src/uts/common/inet/
H A Dtunables.c351 sctp_stack_t *sctps; in mod_set_extra_privports() local
387 sctps = stack->netstack_sctp; in mod_set_extra_privports()
388 lock = &sctps->sctps_epriv_port_lock; in mod_set_extra_privports()
389 ports = sctps->sctps_g_epriv_ports; in mod_set_extra_privports()
390 nports = sctps->sctps_g_num_epriv_ports; in mod_set_extra_privports()
469 sctp_stack_t *sctps; in mod_get_extra_privports() local
503 sctps = stack->netstack_sctp; in mod_get_extra_privports()
504 ports = sctps->sctps_g_epriv_ports; in mod_get_extra_privports()
505 nports = sctps->sctps_g_num_epriv_ports; in mod_get_extra_privports()
/titanic_50/usr/src/cmd/mdb/common/modules/sctp/
H A Dsctp.c685 sctp_t sctps, *sctp; in sctp() local
695 if (mdb_vread(&sctps, sizeof (sctps), addr) == -1) { in sctp()
699 sctp = &sctps; in sctp()
1012 listen_size(sctp_stack_t *sctps) in listen_size() argument
1024 conn_size(sctp_stack_t *sctps) in conn_size() argument
1029 kaddr = (uintptr_t)&sctps->sctps_conn_hash_size; in conn_size()
1046 bind_size(sctp_stack_t *sctps) in bind_size() argument
1095 sctp_stack_t *sctps = (sctp_stack_t *)wsp->walk_addr; in fanout_stack_walk_init() local
1107 lw->size = fi->getsize(sctps); in fanout_stack_walk_init()
1510 sctp_stack_t sctps; in sctps_sc_walk_init() local
[all …]
/titanic_50/usr/src/uts/common/inet/ip/
H A Dip6_input.c2228 sctp_stack_t *sctps = ipst->ips_netstack->netstack_sctp; in ip_fanout_v6() local
2261 ira, mp, sctps, sctph); in ip_fanout_v6()
H A Dip_input.c2570 sctp_stack_t *sctps = ipst->ips_netstack->netstack_sctp; in ip_fanout_v4() local
2605 sctps, sctph); in ip_fanout_v4()

12