Initialize acknowledgment number on establishment of outgoing TCP connection.
Ported change 2432a8ee7d
(set expected reception sequence no to zero - to get initial connection to avoid having ack-number other than zero) from uIPv6 to uIPv4.
This commit is contained in:
parent
43ac818dd2
commit
7d38c48a8b
2 changed files with 11 additions and 6 deletions
|
@ -1747,10 +1747,10 @@ uip_process(uint8_t flag)
|
|||
uip_connr->len = 1;
|
||||
|
||||
/* rcv_nxt should be the seqno from the incoming packet + 1. */
|
||||
uip_connr->rcv_nxt[3] = UIP_TCP_BUF->seqno[3];
|
||||
uip_connr->rcv_nxt[2] = UIP_TCP_BUF->seqno[2];
|
||||
uip_connr->rcv_nxt[1] = UIP_TCP_BUF->seqno[1];
|
||||
uip_connr->rcv_nxt[0] = UIP_TCP_BUF->seqno[0];
|
||||
uip_connr->rcv_nxt[1] = UIP_TCP_BUF->seqno[1];
|
||||
uip_connr->rcv_nxt[2] = UIP_TCP_BUF->seqno[2];
|
||||
uip_connr->rcv_nxt[3] = UIP_TCP_BUF->seqno[3];
|
||||
uip_add_rcv_nxt(1);
|
||||
|
||||
/* Parse the TCP MSS option, if present. */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue