From 0b3b7131235f58b35fea1048e4525f0ff64f473b Mon Sep 17 00:00:00 2001 From: likewise Date: Wed, 1 Mar 2006 16:53:41 +0000 Subject: [PATCH] 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. --- src/core/tcp_in.c | 3 +-- src/core/tcp_out.c | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/core/tcp_in.c b/src/core/tcp_in.c index 7715d9e5..212f9c4d 100644 --- a/src/core/tcp_in.c +++ b/src/core/tcp_in.c @@ -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; diff --git a/src/core/tcp_out.c b/src/core/tcp_out.c index f95fbae9..62982bd1 100644 --- a/src/core/tcp_out.c +++ b/src/core/tcp_out.c @@ -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;