summaryrefslogtreecommitdiffstats
path: root/sys/netinet/tcp_subr.c
diff options
context:
space:
mode:
authorandre <andre@FreeBSD.org>2007-05-06 15:56:31 +0000
committerandre <andre@FreeBSD.org>2007-05-06 15:56:31 +0000
commit3d2c0e7f91b15ec970196a3898e0bc4476eb27e3 (patch)
tree1a17978c8b135df93be816a3eeb0a959a925db50 /sys/netinet/tcp_subr.c
parent197f220d34a785ca8c8912835502db910f5b70eb (diff)
downloadFreeBSD-src-3d2c0e7f91b15ec970196a3898e0bc4476eb27e3.zip
FreeBSD-src-3d2c0e7f91b15ec970196a3898e0bc4476eb27e3.tar.gz
Use existing TF_SACK_PERMIT flag in struct tcpcb t_flags field instead of
a decdicated sack_enable int for this bool. Change all users accordingly.
Diffstat (limited to 'sys/netinet/tcp_subr.c')
-rw-r--r--sys/netinet/tcp_subr.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/netinet/tcp_subr.c b/sys/netinet/tcp_subr.c
index 656231c..4a5e16c 100644
--- a/sys/netinet/tcp_subr.c
+++ b/sys/netinet/tcp_subr.c
@@ -658,7 +658,8 @@ tcp_newtcpcb(struct inpcb *inp)
if (tcp_do_rfc1323)
tp->t_flags = (TF_REQ_SCALE|TF_REQ_TSTMP);
- tp->sack_enable = tcp_do_sack;
+ if (tcp_do_sack)
+ tp->t_flags |= TF_SACK_PERMIT;
TAILQ_INIT(&tp->snd_holes);
tp->t_inpcb = inp; /* XXX */
/*
@@ -1607,7 +1608,7 @@ tcp_mtudisc(struct inpcb *inp, int errno)
tp->snd_nxt = tp->snd_una;
tcp_free_sackholes(tp);
tp->snd_recover = tp->snd_max;
- if (tp->sack_enable)
+ if (tp->t_flags & TF_SACK_PERMIT)
EXIT_FASTRECOVERY(tp);
tcp_output(tp);
return (inp);
OpenPOWER on IntegriCloud