Lines Matching refs:alt
171 struct sctp_nets *alt, *mnet, *min_errors_net = NULL, *max_cwnd_net = NULL; in sctp_find_alternate_net() local
328 alt = TAILQ_NEXT(net, sctp_next); in sctp_find_alternate_net()
330 alt = TAILQ_FIRST(&stcb->asoc.nets); in sctp_find_alternate_net()
334 if (alt == NULL) { in sctp_find_alternate_net()
336 alt = TAILQ_FIRST(&stcb->asoc.nets); in sctp_find_alternate_net()
340 if (alt == NULL) { in sctp_find_alternate_net()
344 if (alt->ro.ro_nh == NULL) { in sctp_find_alternate_net()
345 if (alt->ro._s_addr) { in sctp_find_alternate_net()
346 sctp_free_ifa(alt->ro._s_addr); in sctp_find_alternate_net()
347 alt->ro._s_addr = NULL; in sctp_find_alternate_net()
349 alt->src_addr_selected = 0; in sctp_find_alternate_net()
351 if (((alt->dest_state & SCTP_ADDR_REACHABLE) == SCTP_ADDR_REACHABLE) && in sctp_find_alternate_net()
352 (alt->ro.ro_nh != NULL) && in sctp_find_alternate_net()
353 ((alt->dest_state & SCTP_ADDR_UNCONFIRMED) == 0) && in sctp_find_alternate_net()
354 (alt != net)) { in sctp_find_alternate_net()
358 alt = TAILQ_NEXT(alt, sctp_next); in sctp_find_alternate_net()
361 if (alt == NULL) { in sctp_find_alternate_net()
367 alt = TAILQ_NEXT(net, sctp_next); in sctp_find_alternate_net()
369 alt = TAILQ_FIRST(&stcb->asoc.nets); in sctp_find_alternate_net()
373 if (alt == NULL) { in sctp_find_alternate_net()
375 alt = TAILQ_FIRST(&stcb->asoc.nets); in sctp_find_alternate_net()
379 if (alt == NULL) { in sctp_find_alternate_net()
383 if (((alt->dest_state & SCTP_ADDR_UNCONFIRMED) == 0) && in sctp_find_alternate_net()
384 (alt != net)) { in sctp_find_alternate_net()
391 alt = TAILQ_NEXT(alt, sctp_next); in sctp_find_alternate_net()
394 if (alt == NULL) { in sctp_find_alternate_net()
401 alt = net; in sctp_find_alternate_net()
403 if (alt == NULL) { in sctp_find_alternate_net()
404 alt = TAILQ_FIRST(&stcb->asoc.nets); in sctp_find_alternate_net()
407 return (alt); in sctp_find_alternate_net()
484 struct sctp_nets *alt, in sctp_mark_all_for_resend() argument
694 if (alt != net) { in sctp_mark_all_for_resend()
697 chk->whoTo = alt; in sctp_mark_all_for_resend()
698 atomic_add_int(&alt->ref_count, 1); in sctp_mark_all_for_resend()
753 chk->whoTo = alt; in sctp_mark_all_for_resend()
760 atomic_add_int(&alt->ref_count, 1); in sctp_mark_all_for_resend()
817 struct sctp_nets *alt; in sctp_t3rxt_timer() local
888 alt = sctp_find_alternate_net(stcb, net, 2); in sctp_t3rxt_timer()
895 alt = sctp_find_alternate_net(stcb, net, 1); in sctp_t3rxt_timer()
906 alt = sctp_find_alternate_net(stcb, net, 0); in sctp_t3rxt_timer()
911 (void)sctp_mark_all_for_resend(stcb, net, alt, win_probe, in sctp_t3rxt_timer()
950 if ((stcb->asoc.primary_destination == net) && (alt != net)) { in sctp_t3rxt_timer()
961 stcb->asoc.alternate = alt; in sctp_t3rxt_timer()
1031 struct sctp_nets *alt; in sctp_t1init_timer() local
1033 alt = sctp_find_alternate_net(stcb, stcb->asoc.primary_destination, 0); in sctp_t1init_timer()
1034 if (alt != stcb->asoc.primary_destination) { in sctp_t1init_timer()
1036 stcb->asoc.primary_destination = alt; in sctp_t1init_timer()
1054 struct sctp_nets *alt; in sctp_cookie_timer() local
1094 alt = sctp_find_alternate_net(stcb, cookie->whoTo, 0); in sctp_cookie_timer()
1095 if (alt != cookie->whoTo) { in sctp_cookie_timer()
1097 cookie->whoTo = alt; in sctp_cookie_timer()
1098 atomic_add_int(&alt->ref_count, 1); in sctp_cookie_timer()
1117 struct sctp_nets *alt, *net; in sctp_strreset_timer() local
1139 alt = sctp_find_alternate_net(stcb, net, 0); in sctp_strreset_timer()
1140 strrst->whoTo = alt; in sctp_strreset_timer()
1141 atomic_add_int(&alt->ref_count, 1); in sctp_strreset_timer()
1153 chk->whoTo = alt; in sctp_strreset_timer()
1154 atomic_add_int(&alt->ref_count, 1); in sctp_strreset_timer()
1173 sctp_timer_start(SCTP_TIMER_TYPE_STRRESET, inp, stcb, alt); in sctp_strreset_timer()
1181 struct sctp_nets *alt; in sctp_asconf_timer() local
1222 alt = sctp_find_alternate_net(stcb, net, 0); in sctp_asconf_timer()
1223 if (asconf->whoTo != alt) { in sctp_asconf_timer()
1224 asconf->whoTo = alt; in sctp_asconf_timer()
1225 atomic_add_int(&alt->ref_count, 1); in sctp_asconf_timer()
1233 chk->whoTo = alt; in sctp_asconf_timer()
1239 atomic_add_int(&alt->ref_count, 1); in sctp_asconf_timer()
1243 if (chk->whoTo != alt) { in sctp_asconf_timer()
1245 chk->whoTo = alt; in sctp_asconf_timer()
1246 atomic_add_int(&alt->ref_count, 1); in sctp_asconf_timer()
1269 sctp_send_asconf(stcb, alt, SCTP_ADDR_NOT_LOCKED); in sctp_asconf_timer()
1301 struct sctp_nets *alt; in sctp_shutdown_timer() local
1310 alt = sctp_find_alternate_net(stcb, net, 0); in sctp_shutdown_timer()
1313 sctp_send_shutdown(stcb, alt); in sctp_shutdown_timer()
1316 sctp_timer_start(SCTP_TIMER_TYPE_SHUTDOWN, inp, stcb, alt); in sctp_shutdown_timer()
1324 struct sctp_nets *alt; in sctp_shutdownack_timer() local
1333 alt = sctp_find_alternate_net(stcb, net, 0); in sctp_shutdownack_timer()
1336 sctp_send_shutdown_ack(stcb, alt); in sctp_shutdownack_timer()
1339 sctp_timer_start(SCTP_TIMER_TYPE_SHUTDOWNACK, inp, stcb, alt); in sctp_shutdownack_timer()