]> git.meshlink.io Git - utcp/commitdiff
Update snd.una when receiving an ACK in the SYN_RECEIVED state.
authorGuus Sliepen <guus@meshlink.io>
Sat, 9 Aug 2014 17:14:38 +0000 (19:14 +0200)
committerGuus Sliepen <guus@meshlink.io>
Sat, 9 Aug 2014 17:14:38 +0000 (19:14 +0200)
utcp.c

diff --git a/utcp.c b/utcp.c
index 15f63747f63516423e6b129150dc4cf99ec7f83d..d10c1e1a1b3c2406db135de407d865a338a08dfe 100644 (file)
--- 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: