Lines Matching refs:alt

183 	struct sctp_nets *alt, *mnet, *min_errors_net = NULL , *max_cwnd_net = NULL;
336 alt = TAILQ_NEXT(mnet, sctp_next);
337 if (alt == NULL)
343 alt = TAILQ_FIRST(&stcb->asoc.nets);
344 if (alt == NULL) {
348 if (alt->ro.ro_rt == NULL) {
349 if (alt->ro._s_addr) {
350 sctp_free_ifa(alt->ro._s_addr);
351 alt->ro._s_addr = NULL;
353 alt->src_addr_selected = 0;
356 if (((alt->dest_state & SCTP_ADDR_REACHABLE) == SCTP_ADDR_REACHABLE) &&
357 (alt->ro.ro_rt != NULL) &&
358 (!(alt->dest_state & SCTP_ADDR_UNCONFIRMED))) {
362 mnet = alt;
363 } while (alt != NULL);
365 if (alt == NULL) {
374 alt = TAILQ_NEXT(mnet, sctp_next);
375 if (alt == NULL) {
380 alt = TAILQ_FIRST(&stcb->asoc.nets);
383 if ((!(alt->dest_state & SCTP_ADDR_UNCONFIRMED)) &&
384 (alt != net)) {
388 mnet = alt;
389 } while (alt != NULL);
391 if (alt == NULL) {
394 return (alt);
462 struct sctp_nets *alt,
470 * retransmission. Move them to alt for there destination as well...
678 if (alt != net) {
681 chk->whoTo = alt;
682 atomic_add_int(&alt->ref_count, 1);
740 chk->whoTo = alt;
746 atomic_add_int(&alt->ref_count, 1);
804 struct sctp_nets *alt;
874 alt = sctp_find_alternate_net(stcb, net, 2);
881 alt = sctp_find_alternate_net(stcb, net, 1);
893 alt = sctp_find_alternate_net(stcb, net, 0);
898 (void)sctp_mark_all_for_resend(stcb, net, alt, win_probe,
940 if ((stcb->asoc.primary_destination == net) && (alt != net)) {
951 stcb->asoc.alternate = alt;
1016 struct sctp_nets *alt;
1018 alt = sctp_find_alternate_net(stcb, stcb->asoc.primary_destination, 0);
1019 if (alt != stcb->asoc.primary_destination) {
1021 stcb->asoc.primary_destination = alt;
1039 struct sctp_nets *alt;
1079 alt = sctp_find_alternate_net(stcb, cookie->whoTo, 0);
1080 if (alt != cookie->whoTo) {
1082 cookie->whoTo = alt;
1083 atomic_add_int(&alt->ref_count, 1);
1102 struct sctp_nets *alt;
1124 alt = sctp_find_alternate_net(stcb, strrst->whoTo, 0);
1126 strrst->whoTo = alt;
1127 atomic_add_int(&alt->ref_count, 1);
1138 chk->whoTo = alt;
1139 atomic_add_int(&alt->ref_count, 1);
1163 struct sctp_nets *alt;
1202 alt = sctp_find_alternate_net(stcb, asconf->whoTo, 0);
1203 if (asconf->whoTo != alt) {
1205 asconf->whoTo = alt;
1206 atomic_add_int(&alt->ref_count, 1);
1214 chk->whoTo = alt;
1219 atomic_add_int(&alt->ref_count, 1);
1223 if (chk->whoTo != alt) {
1225 chk->whoTo = alt;
1226 atomic_add_int(&alt->ref_count, 1);
1245 sctp_send_asconf(stcb, alt, SCTP_ADDR_NOT_LOCKED);
1278 struct sctp_nets *alt;
1287 alt = sctp_find_alternate_net(stcb, net, 0);
1290 sctp_send_shutdown(stcb, alt);
1293 sctp_timer_start(SCTP_TIMER_TYPE_SHUTDOWN, inp, stcb, alt);
1301 struct sctp_nets *alt;
1310 alt = sctp_find_alternate_net(stcb, net, 0);
1313 sctp_send_shutdown_ack(stcb, alt);
1316 sctp_timer_start(SCTP_TIMER_TYPE_SHUTDOWNACK, inp, stcb, alt);