From 5b99f2504f553edfd31ce5d0b05f825dd8dc4632 Mon Sep 17 00:00:00 2001 From: Guus Sliepen Date: Sat, 9 Aug 2014 19:14:38 +0200 Subject: [PATCH] Update snd.una when receiving an ACK in the SYN_RECEIVED state. --- utcp.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/utcp.c b/utcp.c index 15f6374..d10c1e1 100644 --- a/utcp.c +++ b/utcp.c @@ -597,6 +597,8 @@ int utcp_recv(struct utcp *utcp, const void *data, size_t len) { if(c->state != ESTABLISHED) goto reset; + + c->snd.una = hdr.ack; break; case ESTABLISHED: case CLOSE_WAIT: -- 2.39.5