Lines Matching refs:transport
202 /* Make an empty list of remote transport addresses. */
315 struct sctp_transport *transport;
373 /* Release the transport structures. */
375 transport = list_entry(pos, struct sctp_transport, transports);
377 sctp_unhash_transport(transport);
378 sctp_transport_free(transport);
422 struct sctp_transport *transport)
430 asoc->peer.primary_path != transport)
433 asoc->peer.primary_path = transport;
434 sctp_ulpevent_notify_peer_addr_change(transport,
438 memcpy(&asoc->peer.primary_addr, &transport->ipaddr,
444 if ((transport->state == SCTP_ACTIVE) ||
445 (transport->state == SCTP_UNKNOWN))
446 asoc->peer.active_path = transport;
465 if (transport->cacc.changeover_active)
466 transport->cacc.cycling_changeover = changeover;
471 transport->cacc.changeover_active = changeover;
476 transport->cacc.next_tsn_at_change = asoc->next_tsn;
479 /* Remove a transport from an association. */
483 struct sctp_transport *transport;
498 /* Remove this peer from the transport hashtable */
501 /* Get the first transport of asoc. */
503 transport = list_entry(pos, struct sctp_transport, transports);
507 sctp_assoc_set_primary(asoc, transport);
509 asoc->peer.active_path = transport;
511 asoc->peer.retran_path = transport;
513 asoc->peer.last_data_from = transport;
516 asoc->strreset_chunk->transport == peer) {
517 asoc->strreset_chunk->transport = transport;
518 sctp_transport_reset_reconf_timer(transport);
521 /* If we remove the transport an INIT was last sent to, set it to
524 * transport, maintaining the cycle.
529 /* If we remove the transport an SHUTDOWN was last sent to, set it
532 * transport, maintaining the cycle.
537 /* If we remove the transport an ASCONF was last sent to, set it to
541 asoc->addip_last_asconf->transport == peer)
542 asoc->addip_last_asconf->transport = NULL;
550 /* Reset the transport of each chunk on this list */
553 ch->transport = NULL;
571 if (ch->transport == peer)
572 ch->transport = NULL;
580 /* Add a transport address to an association. */
657 /* Initialize the pmtu of the transport. */
660 /* If this is the first transport addr on this association,
699 /* Set the transport's RTO.initial value */
706 /* Add this peer into the transport hashtable */
712 /* Attach the remote transport to our asoc. */
732 /* Delete a transport address from an association. */
738 struct sctp_transport *transport;
741 transport = list_entry(pos, struct sctp_transport, transports);
742 if (sctp_cmp_addr_exact(addr, &transport->ipaddr)) {
744 sctp_assoc_rm_peer(asoc, transport);
750 /* Lookup a transport by address. */
777 /* if the current transport is not the primary one, delete it */
783 /* Engage in transport control operations.
784 * Mark the transport up or down and send a notification to the user.
788 struct sctp_transport *transport,
795 /* Record the transition on the transport. */
802 if (transport->state == SCTP_PF &&
805 else if (transport->state == SCTP_UNCONFIRMED &&
809 transport->state = SCTP_ACTIVE;
813 /* If the transport was never confirmed, do not transition it
817 if (transport->state != SCTP_UNCONFIRMED) {
818 transport->state = SCTP_INACTIVE;
821 sctp_transport_dst_release(transport);
827 transport->state = SCTP_PF;
842 sctp_ulpevent_notify_peer_addr_change(transport,
912 * Find which transport this TSN was sent on.
919 struct sctp_transport *transport;
931 * The general strategy is to search each transport's transmitted
932 * list. Return which transport this TSN lives on.
952 list_for_each_entry(transport, &asoc->peer.transport_addr_list,
955 if (transport == active)
957 list_for_each_entry(chunk, &transport->transmitted,
960 match = transport;
1031 asoc->peer.last_data_from = chunk->transport;
1039 if (chunk->transport)
1040 chunk->transport->last_time_heard = ktime_get();
1193 * inactive destination transport address, before reporting
1195 * the data to an alternate active destination transport
1212 * transport with state SCTP_ACTIVE exists, round-robin through
1254 /* First, try a score-based selection if both transport states
1316 /* Keep track of the best PF transport from our
1340 * destination transport address (and possibly source transport
1342 * bump the most recently used transport.]
1358 /* If we failed to find a usable transport, just camp on the
1415 * transports. This routine is called when a transport's PMTU has changed.