]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - net/sctp/sm_sideeffect.c
netfilter: nf_flow_table_offload: Correct memcpy size for flow_overload_mangle()
[linux.git] / net / sctp / sm_sideeffect.c
index e52b2128e43b8706ddbec3d6b77388e24402c1c9..acd737d4c0e0a938895ed10fc8aa39e3f908b64f 100644 (file)
@@ -567,6 +567,11 @@ static void sctp_do_8_2_transport_strike(struct sctp_cmd_seq *commands,
                                             SCTP_FAILED_THRESHOLD);
        }
 
+       if (transport->error_count > transport->ps_retrans &&
+           asoc->peer.primary_path == transport &&
+           asoc->peer.active_path != transport)
+               sctp_assoc_set_primary(asoc, asoc->peer.active_path);
+
        /* E2) For the destination address for which the timer
         * expires, set RTO <- RTO * 2 ("back off the timer").  The
         * maximum value discussed in rule C7 above (RTO.max) may be