mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-12-31 22:29:47 +00:00
set expected reception sequence no to zero - to get initial connection to avoid having ack-number other than zero
This commit is contained in:
parent
724bcbd2d3
commit
2432a8ee7d
@ -474,6 +474,11 @@ uip_connect(uip_ipaddr_t *ripaddr, u16_t rport)
|
|||||||
conn->snd_nxt[2] = iss[2];
|
conn->snd_nxt[2] = iss[2];
|
||||||
conn->snd_nxt[3] = iss[3];
|
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->initialmss = conn->mss = UIP_TCP_MSS;
|
||||||
|
|
||||||
conn->len = 1; /* TCP length of the SYN is one. */
|
conn->len = 1; /* TCP length of the SYN is one. */
|
||||||
|
Loading…
Reference in New Issue
Block a user