diff options
author | ps <ps@FreeBSD.org> | 2005-02-17 23:04:56 +0000 |
---|---|---|
committer | ps <ps@FreeBSD.org> | 2005-02-17 23:04:56 +0000 |
commit | c54115d548403a18776fc113c093f02b9b1b7cd6 (patch) | |
tree | f499192558595efb6ec36ffea0115a881a6c068d /sys/netinet/tcp_input.c | |
parent | f37aa50bc87784bdc8c08c58bd6437518e57167e (diff) | |
download | FreeBSD-src-c54115d548403a18776fc113c093f02b9b1b7cd6.zip FreeBSD-src-c54115d548403a18776fc113c093f02b9b1b7cd6.tar.gz |
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
Diffstat (limited to 'sys/netinet/tcp_input.c')
-rw-r--r-- | sys/netinet/tcp_input.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/sys/netinet/tcp_input.c b/sys/netinet/tcp_input.c index c10a94c..6255042 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 |