summaryrefslogtreecommitdiff
path: root/sys/netinet/tcp_usrreq.c
diff options
context:
space:
mode:
authorAndre Oppermann <andre@FreeBSD.org>2007-05-06 15:56:31 +0000
committerAndre Oppermann <andre@FreeBSD.org>2007-05-06 15:56:31 +0000
commit3529149e9a40ce02ac17918077ad9e975070ce57 (patch)
tree1a17978c8b135df93be816a3eeb0a959a925db50 /sys/netinet/tcp_usrreq.c
parent0ca3f933ebc620672a50ff9d185831a111760b5d (diff)
Notes
Diffstat (limited to 'sys/netinet/tcp_usrreq.c')
-rw-r--r--sys/netinet/tcp_usrreq.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/netinet/tcp_usrreq.c b/sys/netinet/tcp_usrreq.c
index 9a4053e6837c..38b29283b960 100644
--- a/sys/netinet/tcp_usrreq.c
+++ b/sys/netinet/tcp_usrreq.c
@@ -1235,7 +1235,7 @@ tcp_fill_info(struct tcpcb *tp, struct tcp_info *ti)
ti->tcpi_state = tp->t_state;
if ((tp->t_flags & TF_REQ_TSTMP) && (tp->t_flags & TF_RCVD_TSTMP))
ti->tcpi_options |= TCPI_OPT_TIMESTAMPS;
- if (tp->sack_enable)
+ if (tp->t_flags & TF_SACK_PERMIT)
ti->tcpi_options |= TCPI_OPT_SACK;
if ((tp->t_flags & TF_REQ_SCALE) && (tp->t_flags & TF_RCVD_SCALE)) {
ti->tcpi_options |= TCPI_OPT_WSCALE;
@@ -1863,8 +1863,8 @@ db_print_tcpcb(struct tcpcb *tp, const char *name, int indent)
tp->snd_recover_prev, tp->t_badrxtwin);
db_print_indent(indent);
- db_printf("sack_enable: %d snd_numholes: %d snd_holes first: %p\n",
- tp->sack_enable, tp->snd_numholes, TAILQ_FIRST(&tp->snd_holes));
+ db_printf("snd_numholes: %d snd_holes first: %p\n",
+ tp->snd_numholes, TAILQ_FIRST(&tp->snd_holes));
db_print_indent(indent);
db_printf("snd_fack: 0x%08x rcv_numsacks: %d sack_newdata: "