Home | History | Annotate | Download | only in netinet

Lines Matching defs:alt

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