Lines Matching defs:stcb
237 struct sctp_tcb *stcb,
248 if ((inp == NULL) || (stcb == NULL) || (net == NULL) ||
250 if (stcb != NULL) {
251 SCTP_TCB_UNLOCK(stcb);
256 if (ntohl(sh->v_tag) != (stcb->asoc.peer_vtag)) {
257 SCTP_TCB_UNLOCK(stcb);
264 SCTP_TCB_UNLOCK(stcb);
269 SCTP_TCB_UNLOCK(stcb);
284 sctp_timer_stop(SCTP_TIMER_TYPE_PATHMTURAISE, inp, stcb, NULL);
291 if (stcb->asoc.smallest_mtu > nxtsz) {
295 stcb->asoc.smallest_mtu = nxtsz;
298 TAILQ_FOREACH(chk, &stcb->asoc.send_queue, sctp_next) {
303 TAILQ_FOREACH(chk, &stcb->asoc.sent_queue, sctp_next) {
311 stcb->asoc.sent_queue_retran_cnt++;
318 sctp_total_flight_decrease(stcb, chk);
326 TAILQ_FOREACH(strm, &stcb->asoc.out_wheel, next_spoke) {
331 sctp_split_chunks(&stcb->asoc, strm, chk);
337 sctp_timer_start(SCTP_TIMER_TYPE_PATHMTURAISE, inp, stcb, NULL);
338 SCTP_TCB_UNLOCK(stcb);
347 struct sctp_tcb *stcb,
351 if ((inp == NULL) || (stcb == NULL) || (net == NULL) ||
361 if (ntohl(sh->v_tag) != (stcb->asoc.peer_vtag)) {
385 stcb, SCTP_FAILED_THRESHOLD,
388 if (stcb) {
389 SCTP_TCB_UNLOCK(stcb);
399 sctp_abort_notification(stcb, SCTP_PEER_FAULTY);
400 sctp_free_assoc(inp, stcb);
409 if (stcb) {
410 SCTP_TCB_UNLOCK(stcb);
434 struct sctp_tcb *stcb;
454 stcb = sctp_findassociation_addr_sa((struct sockaddr *)&from,
457 if (stcb != NULL && inp && (inp->sctp_socket != NULL)) {
466 (struct sockaddr *)&to, stcb,
470 sctp_notify_mbuf(inp, stcb, net, ip, sh);
480 if ((stcb == NULL) && (inp != NULL)) {
709 struct sctp_tcb *stcb;
711 stcb = LIST_FIRST(&inp->sctp_asoc_list);
712 if (stcb == NULL) {
717 asoc = &stcb->asoc;
718 SCTP_TCB_LOCK(stcb);
736 sctp_send_abort_tcb(stcb, err);
739 sctp_free_assoc(inp, stcb);
773 sctp_send_shutdown(stcb,
774 stcb->asoc.primary_destination);
775 sctp_chunk_output(stcb->sctp_ep, stcb, 1);
778 stcb->sctp_ep, stcb,
781 stcb->sctp_ep, stcb,
791 SCTP_TCB_UNLOCK(stcb);
829 struct sctp_tcb *stcb;
833 stcb = LIST_FIRST(&inp->sctp_asoc_list);
834 if (stcb == NULL) {
841 SCTP_TCB_LOCK(stcb);
842 asoc = &stcb->asoc;
868 sctp_send_shutdown(stcb,
869 stcb->asoc.primary_destination);
870 sctp_chunk_output(stcb->sctp_ep, stcb, 1);
873 stcb->sctp_ep, stcb,
876 stcb->sctp_ep, stcb,
886 SCTP_TCB_UNLOCK(stcb);
909 struct sctp_tcb *stcb,
921 if (stcb) {
923 loopback_scope = stcb->asoc.loopback_scope;
924 ipv4_local_scope = stcb->asoc.ipv4_local_scope;
925 local_scope = stcb->asoc.local_scope;
926 site_scope = stcb->asoc.site_scope;
959 if (stcb) {
968 if (sctp_is_addr_restricted(stcb,
1039 if (stcb) {
1040 if (sctp_is_addr_restricted(stcb, laddr->ifa->ifa_addr)) {
1057 if (stcb) {
1059 LIST_FOREACH(laddr, &stcb->asoc.sctp_local_addr_list,
1146 struct sctp_tcb *stcb = NULL;
1169 stcb = LIST_FIRST(&inp->sctp_asoc_list);
1172 if (stcb) {
1216 stcb = sctp_findassociation_ep_addr(&inp, sa, NULL, NULL, NULL);
1217 if (stcb != NULL) {
1220 SCTP_TCB_UNLOCK(stcb);
1268 stcb = sctp_aloc_assoc(inp, sa, 1, &error, 0);
1269 if (stcb == NULL) {
1284 if (sctp_add_remote_addr(stcb, sa, 0, 8)) {
1286 sctp_free_assoc(inp, stcb);
1293 if (sctp_add_remote_addr(stcb, sa, 0, 8)) {
1295 sctp_free_assoc(inp, stcb);
1302 stcb->asoc.state = SCTP_STATE_COOKIE_WAIT;
1304 id = sctp_get_associd(stcb);
1309 stcb->asoc.delayed_connection = 1;
1310 sctp_timer_start(SCTP_TIMER_TYPE_INIT, inp, stcb, stcb->asoc.primary_destination);
1312 SCTP_GETTIME_TIMEVAL(&stcb->asoc.time_entered);
1313 sctp_send_initiate(inp, stcb);
1315 SCTP_TCB_UNLOCK(stcb);
1316 if (stcb->sctp_ep->sctp_flags & SCTP_PCB_FLAGS_TCPTYPE) {
1317 stcb->sctp_ep->sctp_flags |= SCTP_PCB_FLAGS_CONNECTED;
1332 struct sctp_tcb *stcb = NULL;
1410 stcb = LIST_FIRST(&inp->sctp_asoc_list);
1411 if (stcb == NULL) {
1419 stcb = LIST_FIRST(&inp->sctp_asoc_list);
1421 stcb = LIST_NEXT(stcb , sctp_tcblist);
1425 if ( stcb == NULL)
1432 ids->asls_assoc_id[at] = sctp_get_associd(stcb);
1435 stcb = LIST_NEXT(stcb , sctp_tcblist);
1436 if (stcb == NULL) {
1452 stcb = sctp_findassociation_ep_asocid(inp, gnv->gn_assoc_id);
1453 if (stcb == NULL) {
1456 gnv->gn_peers_tag = stcb->asoc.peer_vtag;
1457 gnv->gn_local_tag = stcb->asoc.my_vtag;
1458 SCTP_TCB_UNLOCK(stcb);
1491 stcb = sctp_findassociation_ep_asocid(inp, ss->ss_assoc_id);
1492 if (stcb == NULL) {
1495 asoc = &stcb->asoc;
1501 SCTP_TCB_UNLOCK(stcb);
1539 stcb = LIST_FIRST(&inp->sctp_asoc_list);
1540 if (stcb) {
1541 SCTP_TCB_LOCK(stcb);
1543 *segsize = sctp_get_frag_point(stcb, &stcb->asoc);
1544 SCTP_TCB_UNLOCK(stcb);
1550 stcb = sctp_findassociation_ep_asocid(inp, *assoc_id);
1551 if (stcb) {
1552 *segsize = sctp_get_frag_point(stcb, &stcb->asoc);
1553 SCTP_TCB_UNLOCK(stcb);
1728 stcb = NULL;
1732 stcb = LIST_FIRST(&inp->sctp_asoc_list);
1733 if (stcb) {
1734 SCTP_TCB_LOCK(stcb);
1738 if (stcb == NULL) {
1740 stcb = sctp_findassociation_ep_asocid(inp, *assoc_id);
1743 if (stcb == NULL) {
1750 TAILQ_FOREACH(net, &stcb->asoc.nets, sctp_next) {
1751 if ((stcb->sctp_ep->sctp_flags & SCTP_PCB_FLAGS_NEEDS_MAPPED_V4) ||
1761 SCTP_TCB_UNLOCK(stcb);
1789 stcb = LIST_FIRST(&inp->sctp_asoc_list);
1790 if (stcb) {
1791 SCTP_TCB_LOCK(stcb);
1795 stcb = sctp_findassociation_ep_asocid(inp,
1797 if (stcb == NULL) {
1804 TAILQ_FOREACH(net, &stcb->asoc.nets, sctp_next) {
1808 if ((stcb->sctp_ep->sctp_flags & SCTP_PCB_FLAGS_NEEDS_MAPPED_V4) ||
1826 if ((stcb->sctp_ep->sctp_flags & SCTP_PCB_FLAGS_NEEDS_MAPPED_V4) &&
1834 ((struct sockaddr_in *)sas)->sin_port = stcb->rport;
1846 SCTP_TCB_UNLOCK(stcb);
1873 stcb = LIST_FIRST(&inp->sctp_asoc_list);
1874 if (stcb) {
1875 SCTP_TCB_LOCK(stcb);
1879 stcb = sctp_findassociation_ep_asocid(inp, saddr->sget_assoc_id);
1882 stcb = NULL;
1889 (stcb == NULL) ) {
1891 stcb = LIST_FIRST(&inp->sctp_asoc_list);
1892 if (stcb) {
1893 SCTP_TCB_LOCK(stcb);
1899 actual = sctp_fill_up_addresses(inp, stcb, limit, sas);
1900 SCTP_TCB_UNLOCK(stcb);
1935 stcb = LIST_FIRST(&inp->sctp_asoc_list);
1936 if (stcb) {
1937 SCTP_TCB_LOCK(stcb);
1938 net = sctp_findnet(stcb, (struct sockaddr *)&paddrp->spp_address);
1942 stcb = sctp_findassociation_ep_asocid(inp, paddrp->spp_assoc_id);
1944 if (stcb == NULL) {
1949 if ((stcb == NULL) &&
1960 stcb = LIST_FIRST(&inp->sctp_asoc_list);
1961 if (stcb) {
1962 SCTP_TCB_LOCK(stcb);
1963 net = sctp_findnet(stcb, (struct sockaddr *)&paddrp->spp_address);
1970 stcb = sctp_findassociation_ep_addr(&inp,
1973 if (stcb == NULL) {
1980 if (stcb == NULL) {
1991 stcb = NULL;
1993 if (stcb) {
2004 paddrp->spp_pathmaxrxt = stcb->asoc.def_net_failure;
2006 paddrp->spp_hbinterval = stcb->asoc.heart_beat_delay;
2007 paddrp->spp_assoc_id = sctp_get_associd(stcb);
2008 SCTP_TCB_UNLOCK(stcb);
2045 stcb = LIST_FIRST(&inp->sctp_asoc_list);
2046 if (stcb) {
2047 SCTP_TCB_LOCK(stcb);
2048 net = sctp_findnet(stcb,
2056 stcb = sctp_findassociation_ep_addr(&inp,
2059 if (stcb == NULL) {
2067 stcb = NULL;
2069 if ((stcb == NULL) || (net == NULL)) {
2078 paddri->spinfo_assoc_id = sctp_get_associd(stcb);
2079 SCTP_TCB_UNLOCK(stcb);
2117 stcb = LIST_FIRST(&inp->sctp_asoc_list);
2118 if (stcb) {
2119 SCTP_TCB_LOCK(stcb);
2123 stcb = sctp_findassociation_ep_asocid(inp, sstat->sstat_assoc_id);
2125 if (stcb == NULL) {
2126 printf("SCTP status, no stcb\n");
2135 sstat->sstat_state = stcb->asoc.state;
2136 sstat->sstat_rwnd = stcb->asoc.peers_rwnd;
2137 sstat->sstat_unackdata = stcb->asoc.sent_queue_cnt;
2142 sstat->sstat_penddata = (stcb->asoc.cnt_on_delivery_queue +
2143 stcb->asoc.cnt_on_reasm_queue +
2144 stcb->asoc.cnt_on_all_streams);
2147 sstat->sstat_instrms = stcb->asoc.streamincnt;
2148 sstat->sstat_outstrms = stcb->asoc.streamoutcnt;
2149 sstat->sstat_fragmentation_point = sctp_get_frag_point(stcb, &stcb->asoc);
2151 rtcache_getdst(&stcb->asoc.primary_destination->ro),
2152 (rtcache_getdst(&stcb->asoc.primary_destination->ro))->sa_len);
2153 net = stcb->asoc.primary_destination;
2154 ((struct sockaddr_in *)&sstat->sstat_primary.spinfo_address)->sin_port = stcb->rport;
2164 sstat->sstat_primary.spinfo_assoc_id = sctp_get_associd(stcb);
2165 SCTP_TCB_UNLOCK(stcb);
2193 stcb = LIST_FIRST(&inp->sctp_asoc_list);
2194 if (stcb) {
2195 SCTP_TCB_LOCK(stcb);
2199 stcb = sctp_findassociation_ep_asocid(inp, srto->srto_assoc_id);
2201 if (stcb == NULL) {
2205 srto->srto_initial = stcb->asoc.initial_rto;
2206 srto->srto_max = stcb->asoc.maxrto;
2207 srto->srto_min = stcb->asoc.minrto;
2208 SCTP_TCB_UNLOCK(stcb);
2225 stcb = NULL;
2229 stcb = LIST_FIRST(&inp->sctp_asoc_list);
2230 if (stcb) {
2231 SCTP_TCB_LOCK(stcb);
2235 if ((sasoc->sasoc_assoc_id) && (stcb == NULL)) {
2236 stcb = sctp_findassociation_ep_asocid(inp,
2238 if (stcb == NULL) {
2243 stcb = NULL;
2246 if (stcb) {
2247 sasoc->sasoc_asocmaxrxt = stcb->asoc.max_send_times;
2248 sasoc->sasoc_number_peer_destinations = stcb->asoc.numnets;
2249 sasoc->sasoc_peer_rwnd = stcb->asoc.peers_rwnd;
2250 sasoc->sasoc_local_rwnd = stcb->asoc.my_rwnd;
2251 sasoc->sasoc_cookie_life = stcb->asoc.cookie_life;
2252 SCTP_TCB_UNLOCK(stcb);
2276 stcb = LIST_FIRST(&inp->sctp_asoc_list);
2277 if (stcb) {
2278 SCTP_TCB_LOCK(stcb);
2282 stcb = sctp_findassociation_ep_asocid(inp, s_info->sinfo_assoc_id);
2284 if (stcb == NULL) {
2289 *s_info = stcb->asoc.def_send;
2290 SCTP_TCB_UNLOCK(stcb);
2333 stcb = LIST_FIRST(&inp->sctp_asoc_list);
2334 if (stcb) {
2335 SCTP_TCB_LOCK(stcb);
2339 stcb = sctp_findassociation_ep_asocid(inp, ssp->ssp_assoc_id);
2340 if (stcb == NULL) {
2347 stcb = sctp_findassociation_ep_addr(&inp,
2350 if (stcb == NULL) {
2356 if (stcb == NULL) {
2363 rtcache_getdst(&stcb->asoc.primary_destination->ro),
2364 (rtcache_getdst(&stcb->asoc.primary_destination->ro))->sa_len);
2365 SCTP_TCB_UNLOCK(stcb);
2381 struct sctp_tcb *stcb = NULL;
2493 stcb = LIST_FIRST(&inp->sctp_asoc_list);
2494 if (stcb) {
2495 SCTP_TCB_LOCK(stcb);
2499 stcb = sctp_findassociation_ep_asocid(inp, strrst->strrst_assoc_id);
2500 if (stcb == NULL) {
2504 if (stcb->asoc.peer_supports_strreset == 0) {
2511 SCTP_TCB_UNLOCK(stcb);
2522 /* if (stcb->asoc.sending_seq != (stcb->asoc.last_acked_seq + 1)) {*/
2537 if (stcb->asoc.stream_reset_outstanding) {
2539 SCTP_TCB_UNLOCK(stcb);
2553 SCTP_TCB_UNLOCK(stcb);
2556 sctp_send_str_reset_req(stcb, strrst->strrst_num_streams,
2558 sctp_chunk_output(inp, stcb, 12);
2559 SCTP_TCB_UNLOCK(stcb);
2579 stcb = LIST_FIRST(&inp->sctp_asoc_list);
2580 if (stcb) {
2581 SCTP_TCB_LOCK(stcb);
2582 net = sctp_findnet(stcb, sa);
2589 stcb = sctp_findassociation_ep_addr(&inp, sa, &net, NULL, NULL);
2590 if (stcb == NULL) {
2597 if (stcb == NULL) {
2601 if (stcb->asoc.delayed_connection == 1) {
2602 stcb->asoc.delayed_connection = 0;
2603 SCTP_GETTIME_TIMEVAL(&stcb->asoc.time_entered);
2604 sctp_timer_stop(SCTP_TIMER_TYPE_INIT, inp, stcb, stcb->asoc.primary_destination);
2605 sctp_send_initiate(inp, stcb);
2610 SCTP_TCB_UNLOCK(stcb);
2770 stcb = LIST_FIRST(&inp->sctp_asoc_list);
2771 if (stcb) {
2772 SCTP_TCB_LOCK(stcb);
2776 stcb = sctp_findassociation_ep_asocid(inp, s_info->sinfo_assoc_id);
2778 if (stcb == NULL) {
2783 if (s_info->sinfo_stream > stcb->asoc.streamoutcnt) {
2784 SCTP_TCB_UNLOCK(stcb);
2793 stcb->asoc.def_send = *s_info;
2794 SCTP_TCB_UNLOCK(stcb);
2810 stcb = LIST_FIRST(&inp->sctp_asoc_list);
2811 if (stcb) {
2812 SCTP_TCB_LOCK(stcb);
2813 net = sctp_findnet(stcb, (struct sockaddr *)&paddrp->spp_address);
2817 stcb = sctp_findassociation_ep_asocid(inp, paddrp->spp_assoc_id);
2818 if (stcb == NULL) {
2824 if ((stcb == NULL) &&
2830 stcb = LIST_FIRST(&inp->sctp_asoc_list);
2831 if (stcb) {
2832 SCTP_TCB_LOCK(stcb);
2833 net = sctp_findnet(stcb,
2841 stcb = sctp_findassociation_ep_addr(&inp,
2844 if (stcb == NULL) {
2852 stcb = NULL;
2854 if (stcb) {
2862 stcb->asoc.def_net_failure = paddrp->spp_pathmaxrxt;
2871 old = stcb->asoc.heart_beat_delay;
2872 stcb->asoc.heart_beat_delay = paddrp->spp_hbinterval;
2875 sctp_timer_start(SCTP_TIMER_TYPE_HEARTBEAT, inp, stcb, net);
2880 sctp_send_hb(stcb, 1, net);
2884 if (stcb->asoc.heart_beat_delay) {
2887 TAILQ_FOREACH(lnet, &stcb->asoc.nets, sctp_next) {
2895 sctp_timer_stop(SCTP_TIMER_TYPE_HEARTBEAT, inp, stcb, net);
2897 stcb->asoc.heart_beat_delay = 0;
2902 SCTP_TCB_UNLOCK(stcb);
2936 stcb = LIST_FIRST(&inp->sctp_asoc_list);
2937 if (stcb) {
2938 SCTP_TCB_LOCK(stcb);
2942 stcb = sctp_findassociation_ep_asocid(inp, srto->srto_assoc_id);
2943 if (stcb == NULL) {
2949 stcb->asoc.initial_rto = srto->srto_initial;
2951 stcb->asoc.maxrto = srto->srto_max;
2953 stcb->asoc.minrto = srto->srto_min;
2954 SCTP_TCB_UNLOCK(stcb);
2969 stcb = LIST_FIRST(&inp->sctp_asoc_list);
2970 if (stcb) {
2971 SCTP_TCB_LOCK(stcb);
2975 stcb = sctp_findassociation_ep_asocid(inp,
2977 if (stcb == NULL) {
2983 stcb = NULL;
2985 if (stcb) {
2987 stcb->asoc.max_send_times = sasoc->sasoc_asocmaxrxt;
2988 sasoc->sasoc_number_peer_destinations = stcb->asoc.numnets;
2991 if (stcb->asoc.cookie_life)
2992 stcb->asoc.cookie_life = sasoc->sasoc_cookie_life;
2993 SCTP_TCB_UNLOCK(stcb);
3044 stcb = LIST_FIRST(&inp->sctp_asoc_list);
3045 if (stcb) {
3046 SCTP_TCB_LOCK(stcb);
3053 stcb = sctp_findassociation_ep_asocid(inp, spa->ssp_assoc_id);
3054 if (stcb == NULL) {
3059 stcb = sctp_findassociation_ep_addr(&inp,
3062 if (stcb == NULL) {
3071 net = sctp_findnet(stcb, (struct sockaddr *)&spa->ssp_addr);
3073 SCTP_TCB_UNLOCK(stcb);
3078 if ((net != stcb->asoc.primary_destination) &&
3081 lnet = stcb->asoc.primary_destination;
3082 lnet->next_tsn_at_change = net->next_tsn_at_change = stcb->asoc.sending_seq;
3083 if (sctp_set_primary_addr(stcb,
3092 SCTP_TCB_UNLOCK(stcb);
3107 stcb = LIST_FIRST(&inp->sctp_asoc_list);
3108 if (stcb) {
3109 SCTP_TCB_UNLOCK(stcb);
3113 stcb = sctp_findassociation_ep_asocid(inp, sspp->sspp_assoc_id);
3114 if (stcb == NULL) {
3118 if (sctp_set_primary_ip_address_sa(stcb, (struct sockaddr *)&sspp->sspp_addr) != 0) {
3121 SCTP_TCB_UNLOCK(stcb);
3303 struct sctp_tcb *stcb;
3375 stcb = LIST_FIRST(&inp->sctp_asoc_list);
3376 if (stcb) {
3377 SCTP_TCB_UNLOCK(stcb);
3383 stcb = sctp_findassociation_ep_addr(&inp, nam, NULL, NULL, NULL);
3384 if (stcb == NULL) {
3390 if (stcb != NULL) {
3393 SCTP_TCB_UNLOCK(stcb);
3397 stcb = sctp_aloc_assoc(inp, nam, 1, &error, 0);
3398 if (stcb == NULL) {
3402 if (stcb->sctp_ep->sctp_flags & SCTP_PCB_FLAGS_TCPTYPE) {
3403 stcb->sctp_ep->sctp_flags |= SCTP_PCB_FLAGS_CONNECTED;
3407 stcb->asoc.state = SCTP_STATE_COOKIE_WAIT;
3408 SCTP_GETTIME_TIMEVAL(&stcb->asoc.time_entered);
3409 sctp_send_initiate(inp, stcb);
3411 SCTP_TCB_UNLOCK(stcb);
3432 struct sctp_tcb *stcb=NULL;
3465 stcb = sq->tcb;
3467 stcb = NULL;
3470 stcb = LIST_FIRST(&inp->sctp_asoc_list);
3472 if (stcb) {
3473 SCTP_TCB_LOCK(stcb);
3475 if (stcb) {
3477 /* all code in normal stcb path assumes
3484 stcb = sctp_remove_from_socket_q(inp);
3489 inp, stcb);
3492 stcb->asoc.my_rwnd_control_len = sctp_sbspace_sub(stcb->asoc.my_rwnd_control_len,
3495 stcb->asoc.my_rwnd_control_len = sctp_sbspace_sub(stcb->asoc.my_rwnd_control_len,
3499 if ((TAILQ_EMPTY(&stcb->asoc.delivery_queue) == 0) ||
3500 (TAILQ_EMPTY(&stcb->asoc.reasmqueue) == 0)) {
3502 sctp_service_queues(stcb, &stcb->asoc, 1);
3504 sctp_set_rwnd(stcb, &stcb->asoc);
3508 incr = stcb->asoc.my_rwnd - stcb->asoc.my_last_reported_rwnd;
3512 if (((uint32_t)incr >= (stcb->asoc.smallest_mtu * SCTP_SEG_TO_RWND_UPD)) ||
3514 if (callout_pending(&stcb->asoc.dack_timer.timer)) {
3517 stcb->sctp_ep, stcb, NULL);
3520 sctp_send_sack(stcb);
3522 sctp_chunk_output(inp, stcb, 10);
3527 stcb = sctp_remove_from_socket_q(inp);
3553 if (stcb) {
3554 SCTP_TCB_UNLOCK(stcb);
3625 struct sctp_tcb *stcb;
3643 stcb = LIST_FIRST(&inp->sctp_asoc_list);
3644 if (stcb == NULL) {
3648 SCTP_TCB_LOCK(stcb);
3650 prim = (const struct sockaddr *)rtcache_getdst(&stcb->asoc.primary_destination->ro);
3676 SCTP_TCB_UNLOCK(stcb);
3719 struct sctp_tcb *stcb;
3724 stcb = LIST_FIRST(&inp->sctp_asoc_list);
3725 if (stcb == NULL) {
3730 SCTP_TCB_LOCK(stcb);
3731 TAILQ_FOREACH(net, &stcb->asoc.nets, sctp_next) {
3740 SCTP_TCB_UNLOCK(stcb);
3744 stcb, (struct route *)&net->ro, net, 0);
3745 SCTP_TCB_UNLOCK(stcb);
3781 struct sctp_tcb *stcb;
3802 stcb = LIST_FIRST(&inp->sctp_asoc_list);
3803 if (stcb) {
3804 SCTP_TCB_LOCK(stcb);
3807 if (stcb == NULL) {
3811 TAILQ_FOREACH(net, &stcb->asoc.nets, sctp_next) {
3815 sin->sin_port = stcb->rport;
3820 SCTP_TCB_UNLOCK(stcb);