mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-11-19 05:10:40 +00:00
Removed 'even sndbuf' fix in TCP, this fix was a ugly hack for the incomplete checksum routine that does not work now that the checksum routine is fixed.
This commit is contained in:
parent
00f8cf57cd
commit
0b3b713123
@ -712,8 +712,7 @@ tcp_receive(struct tcp_pcb *pcb)
|
|||||||
/* Update the send buffer space. */
|
/* Update the send buffer space. */
|
||||||
pcb->acked = ackno - pcb->lastack;
|
pcb->acked = ackno - pcb->lastack;
|
||||||
|
|
||||||
/* FIX: Data split over odd boundaries */
|
pcb->snd_buf += pcb->acked;
|
||||||
pcb->snd_buf += ((pcb->acked+1) & ~0x1); /* Even the send buffer */
|
|
||||||
|
|
||||||
/* Reset the fast retransmit variables. */
|
/* Reset the fast retransmit variables. */
|
||||||
pcb->dupacks = 0;
|
pcb->dupacks = 0;
|
||||||
|
@ -338,8 +338,7 @@ tcp_enqueue(struct tcp_pcb *pcb, void *arg, u16_t len,
|
|||||||
}
|
}
|
||||||
pcb->snd_lbb += len;
|
pcb->snd_lbb += len;
|
||||||
|
|
||||||
/* FIX: Data split over odd boundaries */
|
pcb->snd_buf -= len;
|
||||||
pcb->snd_buf -= ((len+1) & ~0x1); /* Even the send buffer */
|
|
||||||
|
|
||||||
/* update number of segments on the queues */
|
/* update number of segments on the queues */
|
||||||
pcb->snd_queuelen = queuelen;
|
pcb->snd_queuelen = queuelen;
|
||||||
|
Loading…
Reference in New Issue
Block a user