Lines Matching refs:alt
216 struct sctp_nets *alt, *mnet; in sctp_find_alternate_net() local
231 alt = TAILQ_NEXT(mnet, sctp_next); in sctp_find_alternate_net()
232 if (alt == NULL) { in sctp_find_alternate_net()
237 alt = TAILQ_FIRST(&stcb->asoc.nets); in sctp_find_alternate_net()
239 rt = rtcache_validate(&alt->ro); in sctp_find_alternate_net()
241 alt->src_addr_selected = 0; in sctp_find_alternate_net()
244 ((alt->dest_state & SCTP_ADDR_REACHABLE) == SCTP_ADDR_REACHABLE) && in sctp_find_alternate_net()
246 (!(alt->dest_state & SCTP_ADDR_UNCONFIRMED)) in sctp_find_alternate_net()
249 rtcache_unref(rt, &alt->ro); in sctp_find_alternate_net()
252 rtcache_unref(rt, &alt->ro); in sctp_find_alternate_net()
253 mnet = alt; in sctp_find_alternate_net()
254 } while (alt != NULL); in sctp_find_alternate_net()
256 if (alt == NULL) { in sctp_find_alternate_net()
262 alt = TAILQ_NEXT(mnet, sctp_next); in sctp_find_alternate_net()
263 if (alt == NULL) { in sctp_find_alternate_net()
268 alt = TAILQ_FIRST(&stcb->asoc.nets); in sctp_find_alternate_net()
270 if ((!(alt->dest_state & SCTP_ADDR_UNCONFIRMED)) && in sctp_find_alternate_net()
271 (alt != net)) { in sctp_find_alternate_net()
275 mnet = alt; in sctp_find_alternate_net()
276 } while (alt != NULL); in sctp_find_alternate_net()
278 if (alt == NULL) { in sctp_find_alternate_net()
281 return (alt); in sctp_find_alternate_net()
346 struct sctp_nets *alt, in sctp_mark_all_for_resend() argument
556 if (alt != net) { in sctp_mark_all_for_resend()
558 chk->whoTo = alt; in sctp_mark_all_for_resend()
559 alt->ref_count++; in sctp_mark_all_for_resend()
617 chk->whoTo = alt; in sctp_mark_all_for_resend()
622 alt->ref_count++; in sctp_mark_all_for_resend()
692 struct sctp_nets *alt) in sctp_move_all_chunks_to_alt() argument
698 if (net == alt) in sctp_move_all_chunks_to_alt()
713 chk->whoTo = alt; in sctp_move_all_chunks_to_alt()
714 alt->ref_count++; in sctp_move_all_chunks_to_alt()
722 chk->whoTo = alt; in sctp_move_all_chunks_to_alt()
723 alt->ref_count++; in sctp_move_all_chunks_to_alt()
734 struct sctp_nets *alt; in sctp_t3rxt_timer() local
742 alt = sctp_find_alternate_net(stcb, net); in sctp_t3rxt_timer()
743 win_probe = sctp_mark_all_for_resend(stcb, net, alt, &num_mk); in sctp_t3rxt_timer()
794 sctp_move_all_chunks_to_alt(stcb, net, alt); in sctp_t3rxt_timer()
796 if ((stcb->asoc.primary_destination == net) && (alt != net)) { in sctp_t3rxt_timer()
806 alt) == 0) { in sctp_t3rxt_timer()
882 struct sctp_nets *alt; in sctp_t1init_timer() local
883 alt = sctp_find_alternate_net(stcb, stcb->asoc.primary_destination); in sctp_t1init_timer()
884 if ((alt != NULL) && (alt != stcb->asoc.primary_destination)) { in sctp_t1init_timer()
885 sctp_move_all_chunks_to_alt(stcb, stcb->asoc.primary_destination, alt); in sctp_t1init_timer()
886 stcb->asoc.primary_destination = alt; in sctp_t1init_timer()
903 struct sctp_nets *alt; in sctp_cookie_timer() local
945 alt = sctp_find_alternate_net(stcb, cookie->whoTo); in sctp_cookie_timer()
946 if (alt != cookie->whoTo) { in sctp_cookie_timer()
948 cookie->whoTo = alt; in sctp_cookie_timer()
949 alt->ref_count++; in sctp_cookie_timer()
967 struct sctp_nets *alt; in sctp_strreset_timer() local
1001 alt = sctp_find_alternate_net(stcb, strrst->whoTo); in sctp_strreset_timer()
1003 strrst->whoTo = alt; in sctp_strreset_timer()
1004 alt->ref_count++; in sctp_strreset_timer()
1015 chk->whoTo = alt; in sctp_strreset_timer()
1016 alt->ref_count++; in sctp_strreset_timer()
1024 sctp_move_all_chunks_to_alt(stcb, net, alt); in sctp_strreset_timer()
1039 struct sctp_nets *alt; in sctp_asconf_timer() local
1095 alt = sctp_find_alternate_net(stcb, asconf->whoTo); in sctp_asconf_timer()
1097 asconf->whoTo = alt; in sctp_asconf_timer()
1098 alt->ref_count++; in sctp_asconf_timer()
1105 chk->whoTo = alt; in sctp_asconf_timer()
1110 alt->ref_count++; in sctp_asconf_timer()
1119 sctp_move_all_chunks_to_alt(stcb, net, alt); in sctp_asconf_timer()
1139 struct sctp_nets *alt; in sctp_shutdown_timer() local
1146 alt = sctp_find_alternate_net(stcb, net); in sctp_shutdown_timer()
1157 if (alt) { in sctp_shutdown_timer()
1158 sctp_send_shutdown(stcb, alt); in sctp_shutdown_timer()
1166 sctp_timer_start(SCTP_TIMER_TYPE_SHUTDOWN, inp, stcb, alt); in sctp_shutdown_timer()
1173 struct sctp_nets *alt; in sctp_shutdownack_timer() local
1180 alt = sctp_find_alternate_net(stcb, net); in sctp_shutdownack_timer()
1183 sctp_send_shutdown_ack(stcb, alt); in sctp_shutdownack_timer()
1186 sctp_timer_start(SCTP_TIMER_TYPE_SHUTDOWNACK, inp, stcb, alt); in sctp_shutdownack_timer()