From 2432a8ee7da3a7cdd6c05c54d28ada85105a0b37 Mon Sep 17 00:00:00 2001 From: Joakim Eriksson Date: Fri, 11 Mar 2011 14:27:23 -0500 Subject: [PATCH] set expected reception sequence no to zero - to get initial connection to avoid having ack-number other than zero --- core/net/uip6.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/core/net/uip6.c b/core/net/uip6.c index b79005d38..1ae674b3b 100644 --- a/core/net/uip6.c +++ b/core/net/uip6.c @@ -474,6 +474,11 @@ uip_connect(uip_ipaddr_t *ripaddr, u16_t rport) conn->snd_nxt[2] = iss[2]; conn->snd_nxt[3] = iss[3]; + conn->rcv_nxt[0] = 0; + conn->rcv_nxt[1] = 0; + conn->rcv_nxt[2] = 0; + conn->rcv_nxt[3] = 0; + conn->initialmss = conn->mss = UIP_TCP_MSS; conn->len = 1; /* TCP length of the SYN is one. */