diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2020-06-15 16:00:36 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2020-06-16 10:49:22 +0200 |
commit | c90ff1bdfbbc46826101c75d36903d798822c805 (patch) | |
tree | 2b37c5f190f7be625c1df262cd6e85e1cdddcb34 /common/ratp/ratp.c | |
parent | 6c1e7688df94a9d4dfebeb62266f7fc91c209d8a (diff) | |
download | barebox-c90ff1bdfbbc46826101c75d36903d798822c805.tar.gz barebox-c90ff1bdfbbc46826101c75d36903d798822c805.tar.xz |
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>
Diffstat (limited to 'common/ratp/ratp.c')
0 files changed, 0 insertions, 0 deletions