ratp: Fix closing connections
When entering the LAST_ACK state we have to set the saved SN to the
received SN of the current packet. With this we properly accept the
final incoming packet and close the connection. Without this we
interpret the final incoming packet as a duplicate of the previous
packet and close the connection only after a timeout.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 6c1e768 commit c90ff1bdfbbc46826101c75d36903d798822c805
@Sascha Hauer Sascha Hauer authored on 15 Jun 2020
Showing 1 changed file
View
lib/ratp.c