Module Name: src Committed By: gdt Date: Wed May 25 23:17:44 UTC 2011
Modified Files: src/sys/netinet: tcp_var.h Log Message: Add comment urging a separation of TCP_RTT_SHIFT into separate defines describing the EWMA calculation and the storage representation. (No code change.) To generate a diff of this commit: cvs rdiff -u -r1.166 -r1.167 src/sys/netinet/tcp_var.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/netinet/tcp_var.h diff -u src/sys/netinet/tcp_var.h:1.166 src/sys/netinet/tcp_var.h:1.167 --- src/sys/netinet/tcp_var.h:1.166 Tue May 3 18:28:45 2011 +++ src/sys/netinet/tcp_var.h Wed May 25 23:17:44 2011 @@ -1,4 +1,4 @@ -/* $NetBSD: tcp_var.h,v 1.166 2011/05/03 18:28:45 dyoung Exp $ */ +/* $NetBSD: tcp_var.h,v 1.167 2011/05/25 23:17:44 gdt Exp $ */ /* * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project. @@ -571,6 +571,9 @@ * average (smoothed = (1/scale)sample + ((scale-1)/scale)smoothed). * This results in alpha of 0.125 and beta of 0.25, following RFC2988 * section 2.3 + * + * XXX Change SHIFT values to LGWEIGHT and REP_SHIFT, and adjust + * the code to use the correct ones. */ #define TCP_RTT_SHIFT 3 /* shift for srtt; 3 bits frac. */ #define TCP_RTTVAR_SHIFT 2 /* multiplier for rttvar; 2 bits */