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:
likewise 2006-03-01 16:53:41 +00:00
parent 00f8cf57cd
commit 0b3b713123
2 changed files with 2 additions and 4 deletions

View File

@ -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;

View File

@ -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;