Lines Matching full:alt
169 struct sctp_nets *alt, *mnet, *min_errors_net = NULL, *max_cwnd_net = NULL; in sctp_find_alternate_net() local
326 alt = TAILQ_NEXT(net, sctp_next); in sctp_find_alternate_net()
328 alt = TAILQ_FIRST(&stcb->asoc.nets); in sctp_find_alternate_net()
332 if (alt == NULL) { in sctp_find_alternate_net()
334 alt = TAILQ_FIRST(&stcb->asoc.nets); in sctp_find_alternate_net()
338 if (alt == NULL) { in sctp_find_alternate_net()
342 if (alt->ro.ro_nh == NULL) { in sctp_find_alternate_net()
343 if (alt->ro._s_addr) { in sctp_find_alternate_net()
344 sctp_free_ifa(alt->ro._s_addr); in sctp_find_alternate_net()
345 alt->ro._s_addr = NULL; in sctp_find_alternate_net()
347 alt->src_addr_selected = 0; in sctp_find_alternate_net()
349 if (((alt->dest_state & SCTP_ADDR_REACHABLE) == SCTP_ADDR_REACHABLE) && in sctp_find_alternate_net()
350 (alt->ro.ro_nh != NULL) && in sctp_find_alternate_net()
351 ((alt->dest_state & SCTP_ADDR_UNCONFIRMED) == 0) && in sctp_find_alternate_net()
352 (alt != net)) { in sctp_find_alternate_net()
356 alt = TAILQ_NEXT(alt, sctp_next); in sctp_find_alternate_net()
359 if (alt == NULL) { in sctp_find_alternate_net()
365 alt = TAILQ_NEXT(net, sctp_next); in sctp_find_alternate_net()
367 alt = TAILQ_FIRST(&stcb->asoc.nets); in sctp_find_alternate_net()
371 if (alt == NULL) { in sctp_find_alternate_net()
373 alt = TAILQ_FIRST(&stcb->asoc.nets); in sctp_find_alternate_net()
377 if (alt == NULL) { in sctp_find_alternate_net()
381 if (((alt->dest_state & SCTP_ADDR_UNCONFIRMED) == 0) && in sctp_find_alternate_net()
382 (alt != net)) { in sctp_find_alternate_net()
389 alt = TAILQ_NEXT(alt, sctp_next); in sctp_find_alternate_net()
392 if (alt == NULL) { in sctp_find_alternate_net()
399 alt = net; in sctp_find_alternate_net()
401 if (alt == NULL) { in sctp_find_alternate_net()
402 alt = TAILQ_FIRST(&stcb->asoc.nets); in sctp_find_alternate_net()
405 return (alt); in sctp_find_alternate_net()
482 struct sctp_nets *alt, in sctp_mark_all_for_resend() argument
490 * retransmission. Move them to alt for there destination as well... in sctp_mark_all_for_resend()
692 if (alt != net) { in sctp_mark_all_for_resend()
695 chk->whoTo = alt; in sctp_mark_all_for_resend()
696 atomic_add_int(&alt->ref_count, 1); in sctp_mark_all_for_resend()
751 chk->whoTo = alt; in sctp_mark_all_for_resend()
758 atomic_add_int(&alt->ref_count, 1); in sctp_mark_all_for_resend()
815 struct sctp_nets *alt; in sctp_t3rxt_timer() local
886 alt = sctp_find_alternate_net(stcb, net, 2); in sctp_t3rxt_timer()
893 alt = sctp_find_alternate_net(stcb, net, 1); in sctp_t3rxt_timer()
904 alt = sctp_find_alternate_net(stcb, net, 0); in sctp_t3rxt_timer()
909 (void)sctp_mark_all_for_resend(stcb, net, alt, win_probe, in sctp_t3rxt_timer()
948 if ((stcb->asoc.primary_destination == net) && (alt != net)) { in sctp_t3rxt_timer()
959 stcb->asoc.alternate = alt; in sctp_t3rxt_timer()
1029 struct sctp_nets *alt; in sctp_t1init_timer() local
1031 alt = sctp_find_alternate_net(stcb, stcb->asoc.primary_destination, 0); in sctp_t1init_timer()
1032 if (alt != stcb->asoc.primary_destination) { in sctp_t1init_timer()
1034 stcb->asoc.primary_destination = alt; in sctp_t1init_timer()
1052 struct sctp_nets *alt; in sctp_cookie_timer() local
1092 alt = sctp_find_alternate_net(stcb, cookie->whoTo, 0); in sctp_cookie_timer()
1093 if (alt != cookie->whoTo) { in sctp_cookie_timer()
1095 cookie->whoTo = alt; in sctp_cookie_timer()
1096 atomic_add_int(&alt->ref_count, 1); in sctp_cookie_timer()
1115 struct sctp_nets *alt, *net; in sctp_strreset_timer() local
1137 alt = sctp_find_alternate_net(stcb, net, 0); in sctp_strreset_timer()
1138 strrst->whoTo = alt; in sctp_strreset_timer()
1139 atomic_add_int(&alt->ref_count, 1); in sctp_strreset_timer()
1151 chk->whoTo = alt; in sctp_strreset_timer()
1152 atomic_add_int(&alt->ref_count, 1); in sctp_strreset_timer()
1171 sctp_timer_start(SCTP_TIMER_TYPE_STRRESET, inp, stcb, alt); in sctp_strreset_timer()
1179 struct sctp_nets *alt; in sctp_asconf_timer() local
1220 alt = sctp_find_alternate_net(stcb, net, 0); in sctp_asconf_timer()
1221 if (asconf->whoTo != alt) { in sctp_asconf_timer()
1222 asconf->whoTo = alt; in sctp_asconf_timer()
1223 atomic_add_int(&alt->ref_count, 1); in sctp_asconf_timer()
1231 chk->whoTo = alt; in sctp_asconf_timer()
1237 atomic_add_int(&alt->ref_count, 1); in sctp_asconf_timer()
1241 if (chk->whoTo != alt) { in sctp_asconf_timer()
1243 chk->whoTo = alt; in sctp_asconf_timer()
1244 atomic_add_int(&alt->ref_count, 1); in sctp_asconf_timer()
1267 sctp_send_asconf(stcb, alt, SCTP_ADDR_NOT_LOCKED); in sctp_asconf_timer()
1299 struct sctp_nets *alt; in sctp_shutdown_timer() local
1308 alt = sctp_find_alternate_net(stcb, net, 0); in sctp_shutdown_timer()
1311 sctp_send_shutdown(stcb, alt); in sctp_shutdown_timer()
1314 sctp_timer_start(SCTP_TIMER_TYPE_SHUTDOWN, inp, stcb, alt); in sctp_shutdown_timer()
1322 struct sctp_nets *alt; in sctp_shutdownack_timer() local
1331 alt = sctp_find_alternate_net(stcb, net, 0); in sctp_shutdownack_timer()
1334 sctp_send_shutdown_ack(stcb, alt); in sctp_shutdownack_timer()
1337 sctp_timer_start(SCTP_TIMER_TYPE_SHUTDOWNACK, inp, stcb, alt); in sctp_shutdownack_timer()