mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-11-04 23:29:25 +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. */
|
||||
pcb->acked = ackno - pcb->lastack;
|
||||
|
||||
/* FIX: Data split over odd boundaries */
|
||||
pcb->snd_buf += ((pcb->acked+1) & ~0x1); /* Even the send buffer */
|
||||
pcb->snd_buf += pcb->acked;
|
||||
|
||||
/* Reset the fast retransmit variables. */
|
||||
pcb->dupacks = 0;
|
||||
|
@ -338,8 +338,7 @@ tcp_enqueue(struct tcp_pcb *pcb, void *arg, u16_t len,
|
||||
}
|
||||
pcb->snd_lbb += len;
|
||||
|
||||
/* FIX: Data split over odd boundaries */
|
||||
pcb->snd_buf -= ((len+1) & ~0x1); /* Even the send buffer */
|
||||
pcb->snd_buf -= len;
|
||||
|
||||
/* update number of segments on the queues */
|
||||
pcb->snd_queuelen = queuelen;
|
||||
|
Loading…
Reference in New Issue
Block a user