Home
last modified time | relevance | path

Searched refs:sctp (Results 1 – 25 of 42) sorted by relevance

12

/illumos-gate/usr/src/uts/common/inet/sctp/
H A Dsctp.c521 kmem_free(sctp->sctp_iphc, sctp->sctp_iphc_len); in sctp_headers_free()
531 kmem_free(sctp->sctp_iphc6, sctp->sctp_iphc6_len); in sctp_headers_free()
552 sctp->sctp_xmit_tail = sctp->sctp_xmit_head = NULL; in sctp_free_xmit_data()
726 bzero(&sctp->sctp_bits, sizeof (sctp->sctp_bits)); in sctp_free()
884 sctp->sctp_pd_point = sctp->sctp_rwnd; in sctp_init_values()
886 sctp->sctp_rto_max_init = sctp->sctp_rto_max; in sctp_init_values()
1412 sctp->sctp_hdr6_len : sctp->sctp_hdr_len); in sctp_create()
1474 sctp->sctp_ltsn = sctp->sctp_lvtag + 1; in sctp_create()
1475 sctp->sctp_lcsn = sctp->sctp_ltsn; in sctp_create()
1476 sctp->sctp_recovery_tsn = sctp->sctp_lastack_rxd = sctp->sctp_ltsn - 1; in sctp_create()
[all …]
H A Dsctp_hash.c160 sctp_t *sctp; in cl_sctp_walk_list_stack() local
176 sctp = list_next(&sctps->sctps_g_list, sctp); in cl_sctp_walk_list_stack()
225 sctp = list_next(&sctps->sctps_g_list, sctp); in cl_sctp_walk_list_stack()
246 for (sctp = tf->tf_sctp; sctp != NULL; sctp = in sctp_conn_match()
278 return (sctp); in sctp_conn_match()
295 for (sctp = tf->tf_sctp; sctp; sctp = sctp->sctp_listen_hash_next) { in listen_match()
324 sctp_t *sctp; in sctp_find_conn() local
489 sctp_t *sctp; in sctp_fanout() local
724 sctp); in sctp_listen_hash_remove()
863 for (sctp = tf->tf_sctp; sctp != NULL; in sctp_lookup()
[all …]
H A Dsctp_input.c1402 instr->sctp = sctp; in sctp_data_chunk()
1764 sctp->sctp_lastacked = sctp->sctp_ftsn - 1; in sctp_fill_sack()
1768 if (sctp->sctp_rxqueued < sctp->sctp_rwnd) { in sctp_fill_sack()
2802 sctp->sctp_rxt_nxttsn = sctp->sctp_ltsn; in sctp_got_sack()
2803 sctp->sctp_rxt_maxtsn = sctp->sctp_ltsn; in sctp_got_sack()
2820 sctp->sctp_rxt_nxttsn = sctp->sctp_ltsn; in sctp_got_sack()
2821 sctp->sctp_rxt_maxtsn = sctp->sctp_ltsn; in sctp_got_sack()
3195 sctp->sctp_rxt_nxttsn = sctp->sctp_ltsn; in sctp_got_sack()
3196 sctp->sctp_rxt_maxtsn = sctp->sctp_ltsn; in sctp_got_sack()
3791 sctp_send_abort(sctp, sctp->sctp_fvtag, in sctp_input_data()
[all …]
H A Dsctp_cookie.c390 sctp->sctp_lastacked = sctp->sctp_ftsn - 1; in sctp_initialize_params()
393 sctp->sctp_fcsn = sctp->sctp_lastacked; in sctp_initialize_params()
670 bcopy(sctp->sctp_iphc, p, sctp->sctp_hdr_len); in sctp_send_initack()
680 bcopy(sctp->sctp_iphc6, p, sctp->sctp_hdr6_len); in sctp_send_initack()
809 bcopy(sctp->sctp_secret, sctp->sctp_old_secret, in sctp_send_initack()
978 SCTP_FADDR_TIMER_RESTART(sctp, sctp->sctp_current, in sctp_send_cookie_echo()
991 sctp->sctp_lastacked = sctp->sctp_ftsn - 1; in sctp_send_cookie_echo()
992 sctp->sctp_fcsn = sctp->sctp_lastacked; in sctp_send_cookie_echo()
1015 SCTP_FADDR_TIMER_RESTART(sctp, sctp->sctp_current, in sctp_send_cookie_echo()
1355 sctp->sctp_lastacked = sctp->sctp_ftsn - 1; in sctp_process_cookie()
[all …]
H A Dsctp_timer.c131 SCTP_REFHOLD(sctp); in sctp_timer()
199 sctp_t *sctp; in sctp_timer_fire() local
208 ASSERT(sctp != NULL); in sctp_timer_fire()
230 WAKE_SCTP(sctp); in sctp_timer_fire()
232 SCTP_REFRELE(sctp); in sctp_timer_fire()
401 if (sctp->sctp_strikes >= sctp->sctp_pa_max_rxt) { in sctp_heartbeat_timer()
415 sctp_clean_death(sctp, sctp->sctp_client_errno ? in sctp_heartbeat_timer()
570 expire = sctp->sctp_active + sctp->sctp_autoclose; in sctp_heartbeat_timer()
584 sctp_timer(sctp, sctp->sctp_heartbeat_mp, earliest_expiry); in sctp_heartbeat_timer()
618 sctp_clean_death(sctp, sctp->sctp_client_errno ? in sctp_rexmit_timer()
[all …]
H A Dsctp_common.c378 ASSERT(sctp->sctp_current->sf_pmss == sctp->sctp_mss); in sctp_set_ulp_prop()
383 sctp->sctp_ulp_prop(sctp->sctp_ulpd, &sopp); in sctp_set_ulp_prop()
539 sctp->sctp_faddrs = sctp->sctp_lastfaddr = faddr; in sctp_add_faddr()
744 sctp_clean_death(sctp, sctp->sctp_client_errno ? in sctp_faddr_dead()
953 kmem_free(sctp->sctp_iphc, sctp->sctp_iphc_len); in sctp_build_hdrs()
959 sctp->sctp_hdr_len = sctp->sctp_iphc_len; in sctp_build_hdrs()
993 kmem_free(sctp->sctp_iphc6, sctp->sctp_iphc6_len); in sctp_build_hdrs()
999 sctp->sctp_hdr6_len = sctp->sctp_iphc6_len; in sctp_build_hdrs()
1086 sctp_v4_label(sctp, sctp->sctp_primary) == 0) { in sctp_set_hdraddrs()
1334 if (sctp->sctp_loopback || sctp->sctp_linklocal) { in sctp_get_addrparams()
[all …]
H A Dsctp_opt_data.c535 sctp_timer(sctp, sctp->sctp_heartbeat_mp, in sctp_set_peer_addr_params()
808 RUN_SCTP(sctp); in sctp_get_opt()
1033 WAKE_SCTP(sctp); in sctp_get_opt()
1066 RUN_SCTP(sctp); in sctp_set_opt()
1129 sctp->sctp_arwnd = sctp->sctp_rwnd; in sctp_set_opt()
1130 sctp->sctp_pd_point = sctp->sctp_rwnd; in sctp_set_opt()
1134 sctp->sctp_ulp_prop(sctp->sctp_ulpd, &sopp); in sctp_set_opt()
1361 WAKE_SCTP(sctp); in sctp_set_opt()
1381 RUN_SCTP(sctp); in sctp_getsockname()
1416 WAKE_SCTP(sctp); in sctp_getsockname()
[all …]
H A Dsctp_shutdown.c83 if (sctp->sctp_xmit_head != NULL || sctp->sctp_xmit_unsent != NULL) { in sctp_send_shutdown()
91 fp = sctp_rotate_faddr(sctp, sctp->sctp_shutdown_faddr); in sctp_send_shutdown()
120 sctp->sctp_lastacked = sctp->sctp_ftsn - 1; in sctp_send_shutdown()
141 SCTP_FADDR_TIMER_RESTART(sctp, sctp->sctp_current, in sctp_send_shutdown()
165 if (!SCTP_IS_DETACHED(sctp) && !sctp->sctp_ulp_discon_done) { in sctp_shutdown_received()
166 sctp->sctp_ulp_opctl(sctp->sctp_ulpd, SOCK_OPCTL_SHUT_SEND, 0); in sctp_shutdown_received()
175 if (sctp->sctp_xmit_head != NULL || sctp->sctp_xmit_unsent != NULL) in sctp_shutdown_received()
183 fp = sctp_rotate_faddr(sctp, sctp->sctp_shutdown_faddr); in sctp_shutdown_received()
198 scmp = sctp_make_mp(sctp, sctp->sctp_current, sizeof (*scch)); in sctp_shutdown_complete()
214 sctp_set_iplen(sctp, scmp, sctp->sctp_current->sf_ixa); in sctp_shutdown_complete()
[all …]
H A Dsctp_output.c298 sctp->sctp_ulp_txq_full(sctp->sctp_ulpd, B_TRUE); in sctp_sendmsg()
513 sctp->sctp_xmit_head = sctp->sctp_xmit_tail = mdblk; in sctp_chunkify()
1012 if (sctp->sctp_ftsn == sctp->sctp_lastacked + 1) { in sctp_output()
1516 if (sctp->sctp_ftsn == sctp->sctp_lastacked + 1) { in sctp_make_ftsns()
1766 sctp->sctp_rxt_nxttsn = sctp->sctp_ltsn; in sctp_rexmit()
1776 sctp->sctp_rxt_maxtsn = sctp->sctp_ltsn - 1; in sctp_rexmit()
1821 SCTP_CALC_RXT(sctp, oldfp, sctp->sctp_rto_max); in sctp_rexmit()
1867 if (sctp->sctp_ftsn == sctp->sctp_lastacked + 1) { in sctp_rexmit()
2026 sctp->sctp_rxt_maxtsn = sctp->sctp_ltsn - 1; in sctp_rexmit()
2038 SCTP_CALC_RXT(sctp, oldfp, sctp->sctp_rto_max); in sctp_rexmit()
[all …]
H A Dsctp_bind.c131 RUN_SCTP(sctp); in sctp_listen()
138 WAKE_SCTP(sctp); in sctp_listen()
150 WAKE_SCTP(sctp); in sctp_listen()
154 RUN_SCTP(sctp) in sctp_listen()
216 WAKE_SCTP(sctp); in sctp_listen()
239 RUN_SCTP(sctp); in sctp_bind()
306 WAKE_SCTP(sctp); in sctp_bind()
344 RUN_SCTP(sctp); in sctp_bind_add()
449 WAKE_SCTP(sctp); in sctp_bind_add()
468 RUN_SCTP(sctp); in sctp_bind_del()
[all …]
H A Dsctp_init.c47 sctp_supaddr_param_len(sctp_t *sctp) in sctp_supaddr_param_len() argument
57 conn_t *connp = sctp->sctp_connp; in sctp_supaddr_param()
130 if (!sctp->sctp_send_adaptation) { in sctp_adaptation_code_param()
163 if (sctp->sctp_send_adaptation) { in sctp_init_mp()
175 sctp->sctp_sctph->sh_verf = 0; in sctp_init_mp()
176 sctp->sctp_sctph6->sh_verf = 0; in sctp_init_mp()
184 if (sctp->sctp_nsaddrs == 0) { in sctp_init_mp()
221 BUMP_LOCAL(sctp->sctp_obchunks); in sctp_init_mp()
246 ASSERT(sctp->sctp_nsaddrs > 0); in sctp_addr_params()
252 if ((!modify && sctp->sctp_nsaddrs == 1) || sctp->sctp_loopback || in sctp_addr_params()
[all …]
H A Dsctp_snmp.c100 while (sctp != NULL) { in sctp_kstat_update()
104 sctp = list_next(&sctps->sctps_g_list, sctp); in sctp_kstat_update()
107 sctp->sctp_refcnt++; in sctp_kstat_update()
205 sctp_prev = sctp; in sctp_kstat_update()
207 sctp = list_next(&sctps->sctps_g_list, sctp); in sctp_kstat_update()
612 sctp = list_next(&sctps->sctps_g_list, sctp); in sctp_snmp_get_mib2()
676 RUN_SCTP(sctp); in sctp_snmp_get_mib2()
800 WAKE_SCTP(sctp); in sctp_snmp_get_mib2()
833 sctp_prev = sctp; in sctp_snmp_get_mib2()
835 sctp = list_next(&sctps->sctps_g_list, sctp); in sctp_snmp_get_mib2()
[all …]
H A Dsctp_heartbeat.c54 BUMP_LOCAL(sctp->sctp_ibchunks); in sctp_return_heartbeat()
104 BUMP_LOCAL(sctp->sctp_obchunks); in sctp_return_heartbeat()
108 BUMP_LOCAL(sctp->sctp_opkts); in sctp_return_heartbeat()
196 BUMP_LOCAL(sctp->sctp_opkts); in sctp_send_heartbeat()
249 expire = sctp->sctp_active + sctp->sctp_autoclose; in sctp_validate_peer()
262 sctp_timer(sctp, sctp->sctp_heartbeat_mp, earliest_expiry); in sctp_validate_peer()
290 (void *)sctp)); in sctp_process_heartbeat()
299 (void *)sctp)); in sctp_process_heartbeat()
319 (void *)sctp)); in sctp_process_heartbeat()
325 (void *)sctp)); in sctp_process_heartbeat()
[all …]
H A Dsctp_notify.c53 conn_t *connp = sctp->sctp_connp; in sctp_notify()
73 fp = sctp->sctp_primary; in sctp_notify()
118 rwnd = sctp->sctp_ulp_recv(sctp->sctp_ulpd, mp, msgdsize(mp), 0, in sctp_notify()
120 if (rwnd > sctp->sctp_rwnd) { in sctp_notify()
121 sctp->sctp_rwnd = rwnd; in sctp_notify()
317 sctp->sctp_xmit_tail = sctp->sctp_xmit_unsent_tail = NULL; in sctp_regift_xmitlist()
318 sctp->sctp_unacked = sctp->sctp_unsent = 0; in sctp_regift_xmitlist()
373 if (!sctp->sctp_recvpeererr) { in sctp_error_event()
425 sctp_notify(sctp, mp, len); in sctp_error_event()
458 if (!sctp->sctp_recvalevnt || !sctp->sctp_recv_adaptation) { in sctp_adaptation_event()
[all …]
H A Dsctp_addr.c500 sctp->sctp_nsaddrs++; in sctp_ipif_hash_insert()
901 sctp_t *sctp; in sctp_update_saddrs() local
913 sctp = list_next(&sctps->sctps_g_list, sctp); in sctp_update_saddrs()
916 sctp->sctp_refcnt++; in sctp_update_saddrs()
922 RUN_SCTP(sctp); in sctp_update_saddrs()
941 WAKE_SCTP(sctp); in sctp_update_saddrs()
942 sctp_prev = sctp; in sctp_update_saddrs()
944 sctp = list_next(&sctps->sctps_g_list, sctp); in sctp_update_saddrs()
1422 ASSERT(!sctp->sctp_loopback && !sctp->sctp_linklocal && supp_af != 0); in sctp_check_saddr()
1567 if (sctp->sctp_state >= SCTPS_ESTABLISHED && !sctp->sctp_loopback && in sctp_getmyaddrs()
[all …]
H A Dsctp_asconf.c581 sctp->sctp_fcsn++; in sctp_input_asconf()
653 if (sctp->sctp_cxmit_list == NULL || *snp != (sctp->sctp_lcsn - 1)) { in sctp_input_asconf_ack()
877 if (sctp->sctp_strikes >= sctp->sctp_pa_max_rxt) { in sctp_rc_timer()
891 SCTP_CALC_RXT(sctp, fp, sctp->sctp_rto_max); in sctp_rc_timer()
914 SCTP_CHUNK_REXMIT(sctp, sctp->sctp_cxmit_list); in sctp_rc_timer()
932 if (sctp->sctp_cchunk_pend || sctp->sctp_cxmit_list == NULL || in sctp_wput_asconf()
937 sctp->sctp_cchunk_pend, sctp->sctp_cxmit_list == NULL ? in sctp_wput_asconf()
1444 if (!sctp->sctp_understands_asconf || !sctp->sctp_understands_addip) in sctp_add_ip()
1524 error = sctp_asconf_send(sctp, asc, sctp->sctp_current, ainfo); in sctp_add_ip()
1685 error = sctp_asconf_send(sctp, asc, sctp->sctp_current, ainfo); in sctp_del_ip()
[all …]
H A Dsctp_conn.c331 if ((eager->sctp_ulpd = sctp->sctp_ulp_newconn(sctp->sctp_ulpd, in sctp_conn_request()
447 RUN_SCTP(sctp); in sctp_connect()
451 WAKE_SCTP(sctp); in sctp_connect()
490 WAKE_SCTP(sctp); in sctp_connect()
495 RUN_SCTP(sctp); in sctp_connect()
522 WAKE_SCTP(sctp); in sctp_connect()
533 WAKE_SCTP(sctp); in sctp_connect()
542 WAKE_SCTP(sctp); in sctp_connect()
565 WAKE_SCTP(sctp); in sctp_connect()
646 WAKE_SCTP(sctp); in sctp_connect()
[all …]
H A Dsctp_error.c116 mp = sctp_make_mp(sctp, fp, 0); in sctp_user_abort()
127 hdrlen = sctp->sctp_hdr_len; in sctp_user_abort()
129 hdrlen = sctp->sctp_hdr6_len; in sctp_user_abort()
153 BUMP_LOCAL(sctp->sctp_opkts); in sctp_user_abort()
156 sctp_set_iplen(sctp, mp, ixa); in sctp_user_abort()
192 ahlen = sctp->sctp_hdr_len; in sctp_send_abort()
194 ahlen = sctp->sctp_hdr6_len; in sctp_send_abort()
215 bcopy(sctp->sctp_iphc, p, sctp->sctp_hdr_len); in sctp_send_abort()
234 bcopy(sctp->sctp_iphc6, p, sctp->sctp_hdr6_len); in sctp_send_abort()
310 BUMP_LOCAL(sctp->sctp_opkts); in sctp_send_abort()
[all …]
H A Dsctp_impl.h166 (sctp)->sctp_maxrto = \
176 SCTP_MAX_RTO(sctp, fp); \
188 (sctp)->sctp_refcnt++; \
456 #define SCTP_IS_DETACHED(sctp) ((sctp)->sctp_detached) argument
477 struct sctp_s *sctp; member
961 #define SCTP_TXQ_LEN(sctp) ((sctp)->sctp_unsent + (sctp)->sctp_unacked) argument
963 if ((sctp)->sctp_txq_full && SCTP_TXQ_LEN(sctp) <= \
966 (sctp)->sctp_ulp_txq_full((sctp)->sctp_ulpd, \
1184 #define RUN_SCTP(sctp) \ argument
1188 cv_wait(&(sctp)->sctp_cv, &(sctp)->sctp_lock); \
[all …]
H A Dsctp_misc.c37 sctp_display(sctp_t *sctp, char *sup_buf) in sctp_display() argument
45 if (sctp == NULL) in sctp_display()
48 connp = sctp->sctp_connp; in sctp_display()
51 switch (sctp->sctp_state) { in sctp_display()
83 (void) mi_sprintf(buf1, "SCTPUnkState(%d)", sctp->sctp_state); in sctp_display()
H A Dsctp_asconf.h32 #define SCTP_FADDR_RC_TIMER_RESTART(sctp, fp, intvl) \ argument
34 (fp)->sf_rc_timer_mp = sctp_timer_alloc((sctp), \
42 sctp_timer((sctp), (fp)->sf_rc_timer_mp, (intvl)); \
/illumos-gate/usr/src/cmd/mdb/common/modules/sctp/
H A Dsctp.c790 sctp->sctp_unacked, sctp->sctp_unsent); in sctp()
838 sctp->sctp_rwnd, sctp->sctp_arwnd, sctp->sctp_rxqueued, in sctp()
851 sctp->sctp_iphc6, sctp->sctp_iphc_len, in sctp()
853 sctp->sctp_hdr6_len, sctp->sctp_ipha, sctp->sctp_ip6h, in sctp()
855 sctp->sctp_sctph, sctp->sctp_sctph6, sctp->sctp_lvtag, in sctp()
913 sctp->sctp_opkts, sctp->sctp_obchunks, in sctp()
922 sctp->sctp_ipkts, sctp->sctp_ibchunks, in sctp()
1062 if (mdb_vread(&sctp, sizeof (sctp), fw->sctp) == -1) { in find_next_hash_item()
1066 fw->sctp = fw->getnext(&sctp); in find_next_hash_item()
1265 sctp = &swalker->sctp; in sctp_walk_saddr_init()
[all …]
/illumos-gate/usr/src/cmd/mdb/common/modules/genunix/
H A Dvfs.c574 conn_t *connp = sctp->sctp_connp; in sctp_getsockaddr()
577 if (sctp->sctp_nsaddrs == 0) in sctp_getsockaddr()
583 if (sctp->sctp_state >= SCTPS_ESTABLISHED && !sctp->sctp_loopback) { in sctp_getsockaddr()
588 if (sctp->sctp_saddrs[i].ipif_count == 0) in sctp_getsockaddr()
617 if (scanned >= sctp->sctp_nsaddrs) in sctp_getsockaddr()
621 pnode = list_d2l(&sctp->sctp_saddrs[i]. in sctp_getsockaddr()
644 sctp->sctp_bound_to_all) { in sctp_getsockaddr()
660 sctp->sctp_bound_to_all) { in sctp_getsockaddr()
680 if (scanned >= sctp->sctp_nsaddrs) in sctp_getsockaddr()
714 conn_t *connp = sctp->sctp_connp; in sctp_getpeeraddr()
[all …]
/illumos-gate/usr/src/cmd/mdb/intel/amd64/sctp/
H A DMakefile28 MODULE = sctp.so
31 MODSRCS = sctp.c
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/snoop/
H A Dsnoop_sctp.c1064 interpret_sctp(int flags, sctp_hdr_t *sctp, int iplen, int fraglen) in interpret_sctp() argument
1078 if (!IS_P2ALIGNED(sctp, SCTP_ALIGN)) { in interpret_sctp()
1086 fraglen -= sizeof (*sctp); in interpret_sctp()
1095 len_from_iphdr = iplen - sizeof (*sctp); in interpret_sctp()
1101 sport = ntohs(sctp->sh_sport); in interpret_sctp()
1102 dport = ntohs(sctp->sh_dport); in interpret_sctp()
1105 cp = (sctp_chunk_hdr_t *)(sctp + 1); in interpret_sctp()
1139 "Verification tag = 0x%.8x", ntohl(sctp->sh_verf)); in interpret_sctp()
1141 "CRC-32c = 0x%.8x", ntohl(sctp->sh_chksum)); in interpret_sctp()

12