From e83c574f873ca62a647c1d708a65c507c50a3b52 Mon Sep 17 00:00:00 2001 From: andre Date: Thu, 16 Feb 2006 19:38:07 +0000 Subject: Have TCP Inflight disable itself if the RTT is below a certain threshold. Inflight doesn't make sense on a LAN as it has trouble figuring out the maximal bandwidth because of the coarse tick granularity. The sysctl net.inet.tcp.inflight.rttthresh specifies the threshold in milliseconds below which inflight will disengage. It defaults to 10ms. Tested by: Joao Barros , Rich Murphey Sponsored by: TCP/IP Optimization Fundraise 2005 --- sys/netinet/tcp_var.h | 1 + 1 file changed, 1 insertion(+) (limited to 'sys/netinet/tcp_var.h') diff --git a/sys/netinet/tcp_var.h b/sys/netinet/tcp_var.h index b1515dd..f9050df 100644 --- a/sys/netinet/tcp_var.h +++ b/sys/netinet/tcp_var.h @@ -199,6 +199,7 @@ struct tcpcb { tcp_seq sack_newdata; /* New data xmitted in this recovery episode starts at this seq number */ struct sackhint sackhint; /* SACK scoreboard hint */ + int t_rttlow; /* smallest observerved RTT */ }; #define IN_FASTRECOVERY(tp) (tp->t_flags & TF_FASTRECOVERY) -- cgit v1.1