diff options
| author | Andre Oppermann <andre@FreeBSD.org> | 2007-05-06 15:56:31 +0000 |
|---|---|---|
| committer | Andre Oppermann <andre@FreeBSD.org> | 2007-05-06 15:56:31 +0000 |
| commit | 3529149e9a40ce02ac17918077ad9e975070ce57 (patch) | |
| tree | 1a17978c8b135df93be816a3eeb0a959a925db50 /sys/netinet/tcp_subr.c | |
| parent | 0ca3f933ebc620672a50ff9d185831a111760b5d (diff) | |
Notes
Diffstat (limited to 'sys/netinet/tcp_subr.c')
| -rw-r--r-- | sys/netinet/tcp_subr.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/netinet/tcp_subr.c b/sys/netinet/tcp_subr.c index 656231c03ce5..4a5e16cc986c 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); |
