Lines Matching refs:alt

176 	struct sctp_nets *alt, *mnet, *min_errors_net = NULL, *max_cwnd_net = NULL;  in sctp_find_alternate_net()  local
333 alt = TAILQ_NEXT(net, sctp_next);; in sctp_find_alternate_net()
335 alt = TAILQ_FIRST(&stcb->asoc.nets); in sctp_find_alternate_net()
339 if (alt == NULL) { in sctp_find_alternate_net()
341 alt = TAILQ_FIRST(&stcb->asoc.nets); in sctp_find_alternate_net()
345 if (alt == NULL) { in sctp_find_alternate_net()
349 if (alt->ro.ro_nh == NULL) { in sctp_find_alternate_net()
350 if (alt->ro._s_addr) { in sctp_find_alternate_net()
351 sctp_free_ifa(alt->ro._s_addr); in sctp_find_alternate_net()
352 alt->ro._s_addr = NULL; in sctp_find_alternate_net()
354 alt->src_addr_selected = 0; in sctp_find_alternate_net()
356 if (((alt->dest_state & SCTP_ADDR_REACHABLE) == SCTP_ADDR_REACHABLE) && in sctp_find_alternate_net()
357 (alt->ro.ro_nh != NULL) && in sctp_find_alternate_net()
358 (!(alt->dest_state & SCTP_ADDR_UNCONFIRMED)) && in sctp_find_alternate_net()
359 (alt != net)) { in sctp_find_alternate_net()
363 alt = TAILQ_NEXT(alt, sctp_next); in sctp_find_alternate_net()
366 if (alt == NULL) { in sctp_find_alternate_net()
372 alt = TAILQ_NEXT(net, sctp_next);; in sctp_find_alternate_net()
374 alt = TAILQ_FIRST(&stcb->asoc.nets); in sctp_find_alternate_net()
378 if (alt == NULL) { in sctp_find_alternate_net()
380 alt = TAILQ_FIRST(&stcb->asoc.nets); in sctp_find_alternate_net()
384 if (alt == NULL) { in sctp_find_alternate_net()
388 if ((!(alt->dest_state & SCTP_ADDR_UNCONFIRMED)) && in sctp_find_alternate_net()
389 (alt != net)) { in sctp_find_alternate_net()
396 alt = TAILQ_NEXT(alt, sctp_next); in sctp_find_alternate_net()
399 if (alt == NULL) { in sctp_find_alternate_net()
406 alt = net; in sctp_find_alternate_net()
408 if (alt == NULL) { in sctp_find_alternate_net()
409 alt = TAILQ_FIRST(&stcb->asoc.nets); in sctp_find_alternate_net()
412 return (alt); in sctp_find_alternate_net()
489 struct sctp_nets *alt, in sctp_mark_all_for_resend() argument
697 if (alt != net) { in sctp_mark_all_for_resend()
700 chk->whoTo = alt; in sctp_mark_all_for_resend()
701 atomic_add_int(&alt->ref_count, 1); in sctp_mark_all_for_resend()
756 chk->whoTo = alt; in sctp_mark_all_for_resend()
763 atomic_add_int(&alt->ref_count, 1); in sctp_mark_all_for_resend()
820 struct sctp_nets *alt; in sctp_t3rxt_timer() local
891 alt = sctp_find_alternate_net(stcb, net, 2); in sctp_t3rxt_timer()
898 alt = sctp_find_alternate_net(stcb, net, 1); in sctp_t3rxt_timer()
909 alt = sctp_find_alternate_net(stcb, net, 0); in sctp_t3rxt_timer()
914 (void)sctp_mark_all_for_resend(stcb, net, alt, win_probe, in sctp_t3rxt_timer()
953 if ((stcb->asoc.primary_destination == net) && (alt != net)) { in sctp_t3rxt_timer()
964 stcb->asoc.alternate = alt; in sctp_t3rxt_timer()
1034 struct sctp_nets *alt; in sctp_t1init_timer() local
1036 alt = sctp_find_alternate_net(stcb, stcb->asoc.primary_destination, 0); in sctp_t1init_timer()
1037 if (alt != stcb->asoc.primary_destination) { in sctp_t1init_timer()
1039 stcb->asoc.primary_destination = alt; in sctp_t1init_timer()
1057 struct sctp_nets *alt; in sctp_cookie_timer() local
1097 alt = sctp_find_alternate_net(stcb, cookie->whoTo, 0); in sctp_cookie_timer()
1098 if (alt != cookie->whoTo) { in sctp_cookie_timer()
1100 cookie->whoTo = alt; in sctp_cookie_timer()
1101 atomic_add_int(&alt->ref_count, 1); in sctp_cookie_timer()
1120 struct sctp_nets *alt, *net; in sctp_strreset_timer() local
1142 alt = sctp_find_alternate_net(stcb, net, 0); in sctp_strreset_timer()
1143 strrst->whoTo = alt; in sctp_strreset_timer()
1144 atomic_add_int(&alt->ref_count, 1); in sctp_strreset_timer()
1156 chk->whoTo = alt; in sctp_strreset_timer()
1157 atomic_add_int(&alt->ref_count, 1); in sctp_strreset_timer()
1176 sctp_timer_start(SCTP_TIMER_TYPE_STRRESET, inp, stcb, alt); in sctp_strreset_timer()
1184 struct sctp_nets *alt; in sctp_asconf_timer() local
1225 alt = sctp_find_alternate_net(stcb, net, 0); in sctp_asconf_timer()
1226 if (asconf->whoTo != alt) { in sctp_asconf_timer()
1227 asconf->whoTo = alt; in sctp_asconf_timer()
1228 atomic_add_int(&alt->ref_count, 1); in sctp_asconf_timer()
1236 chk->whoTo = alt; in sctp_asconf_timer()
1242 atomic_add_int(&alt->ref_count, 1); in sctp_asconf_timer()
1246 if (chk->whoTo != alt) { in sctp_asconf_timer()
1248 chk->whoTo = alt; in sctp_asconf_timer()
1249 atomic_add_int(&alt->ref_count, 1); in sctp_asconf_timer()
1272 sctp_send_asconf(stcb, alt, SCTP_ADDR_NOT_LOCKED); in sctp_asconf_timer()
1304 struct sctp_nets *alt; in sctp_shutdown_timer() local
1313 alt = sctp_find_alternate_net(stcb, net, 0); in sctp_shutdown_timer()
1316 sctp_send_shutdown(stcb, alt); in sctp_shutdown_timer()
1319 sctp_timer_start(SCTP_TIMER_TYPE_SHUTDOWN, inp, stcb, alt); in sctp_shutdown_timer()
1327 struct sctp_nets *alt; in sctp_shutdownack_timer() local
1336 alt = sctp_find_alternate_net(stcb, net, 0); in sctp_shutdownack_timer()
1339 sctp_send_shutdown_ack(stcb, alt); in sctp_shutdownack_timer()
1342 sctp_timer_start(SCTP_TIMER_TYPE_SHUTDOWNACK, inp, stcb, alt); in sctp_shutdownack_timer()