ratp: add missing transition to SYN-RECEIVED in behavior B
The reference says:

    If the SYN flag was set but the ACK was not set then the other
    end of the connection has executed an active open also.
    Acknowledge the SYN, choose your MDL, and send:
        <SN=0><AN=received SN+1 modulo 2><CTL=SYN, ACK><LENGTH=MDL>
    Go to the SYN-RECEIVED state without any further processing.

Add this missing step.

This fix isn't related to any barebox<->bbremote interaction issue,
because the case where both ends start an active connection doesn't
apply in this case.

Signed-off-by: Aleksander Morgado <aleksander@aleksander.es>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 285a054 commit b5114cf8a1b87219330fba4d3189788d8fc1a8d1
@Aleksander Morgado Aleksander Morgado authored on 21 Jun 2017
Sascha Hauer committed on 23 Jun 2017
Showing 1 changed file
View
lib/ratp.c