mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2025-01-30 12:32:37 +00:00
BUG27199: use snd_wl2 instead of snd_wl1
This commit is contained in:
parent
3a6165f0b9
commit
fa2dbc2b1b
@ -116,6 +116,9 @@ HISTORY
|
|||||||
|
|
||||||
++ Bugfixes:
|
++ Bugfixes:
|
||||||
|
|
||||||
|
2009-08-12 Kieran Mansley
|
||||||
|
* tcp_in.c: Fix bug #27199: use snd_wl2 instead of snd_wl1
|
||||||
|
|
||||||
2009-07-28 Simon Goldschmidt
|
2009-07-28 Simon Goldschmidt
|
||||||
* mem.h: Fixed bug #27105: "realloc() cannot replace mem_realloc()"s
|
* mem.h: Fixed bug #27105: "realloc() cannot replace mem_realloc()"s
|
||||||
|
|
||||||
|
@ -738,7 +738,7 @@ tcp_receive(struct tcp_pcb *pcb)
|
|||||||
u8_t accepted_inseq = 0;
|
u8_t accepted_inseq = 0;
|
||||||
|
|
||||||
if (flags & TCP_ACK) {
|
if (flags & TCP_ACK) {
|
||||||
right_wnd_edge = pcb->snd_wnd + pcb->snd_wl1;
|
right_wnd_edge = pcb->snd_wnd + pcb->snd_wl2;
|
||||||
|
|
||||||
/* Update window. */
|
/* Update window. */
|
||||||
if (TCP_SEQ_LT(pcb->snd_wl1, seqno) ||
|
if (TCP_SEQ_LT(pcb->snd_wl1, seqno) ||
|
||||||
@ -765,7 +765,7 @@ tcp_receive(struct tcp_pcb *pcb)
|
|||||||
if (pcb->lastack == ackno) {
|
if (pcb->lastack == ackno) {
|
||||||
pcb->acked = 0;
|
pcb->acked = 0;
|
||||||
|
|
||||||
if (pcb->snd_wl1 + pcb->snd_wnd == right_wnd_edge){
|
if (pcb->snd_wl2 + pcb->snd_wnd == right_wnd_edge){
|
||||||
++pcb->dupacks;
|
++pcb->dupacks;
|
||||||
if (pcb->dupacks >= 3 && pcb->unacked != NULL) {
|
if (pcb->dupacks >= 3 && pcb->unacked != NULL) {
|
||||||
if (!(pcb->flags & TF_INFR)) {
|
if (!(pcb->flags & TF_INFR)) {
|
||||||
@ -802,7 +802,7 @@ tcp_receive(struct tcp_pcb *pcb)
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
LWIP_DEBUGF(TCP_FR_DEBUG, ("tcp_receive: dupack averted %"U32_F" %"U32_F"\n",
|
LWIP_DEBUGF(TCP_FR_DEBUG, ("tcp_receive: dupack averted %"U32_F" %"U32_F"\n",
|
||||||
pcb->snd_wl1 + pcb->snd_wnd, right_wnd_edge));
|
pcb->snd_wl2 + pcb->snd_wnd, right_wnd_edge));
|
||||||
}
|
}
|
||||||
} else if (TCP_SEQ_BETWEEN(ackno, pcb->lastack+1, pcb->snd_nxt)){
|
} else if (TCP_SEQ_BETWEEN(ackno, pcb->lastack+1, pcb->snd_nxt)){
|
||||||
/* We come here when the ACK acknowledges new data. */
|
/* We come here when the ACK acknowledges new data. */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user