From 7643c37cf2fa80e20e85c6b6b24e8fb8eb48a183 Mon Sep 17 00:00:00 2001 From: Paul Saab Date: Thu, 17 Feb 2005 23:04:56 +0000 Subject: Remove 2 (SACK) fields from the tcpcb. These are only used by a function that is called from tcp_input(), so they oughta be passed on the stack instead of stuck in the tcpcb. Submitted by: Mohan Srinivasan --- sys/netinet/tcp_input.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'sys/netinet/tcp_input.c') diff --git a/sys/netinet/tcp_input.c b/sys/netinet/tcp_input.c index c10a94c4b8b1..6255042a55b6 100644 --- a/sys/netinet/tcp_input.c +++ b/sys/netinet/tcp_input.c @@ -2295,11 +2295,8 @@ dodata: /* XXX */ thflags = tcp_reass(tp, th, &tlen, m); tp->t_flags |= TF_ACKNOW; } - if (tp->sack_enable) { - tp->rcv_laststart = th->th_seq; /* last recv'd segment*/ - tp->rcv_lastend = th->th_seq + tlen; - tcp_update_sack_list(tp); - } + if (tp->sack_enable) + tcp_update_sack_list(tp, th->th_seq, th->th_seq + tlen); /* * Note the amount of data that peer has sent into * our window, in order to estimate the sender's -- cgit v1.2.3