Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 26 Aug 2009 19:50:27 +0000 (UTC)
From:      Peter Wemm <peter@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-6@freebsd.org
Subject:   svn commit: r196562 - stable/6/sys/netinet
Message-ID:  <200908261950.n7QJoRta072093@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: peter
Date: Wed Aug 26 19:50:27 2009
New Revision: 196562
URL: http://svn.freebsd.org/changeset/base/196562

Log:
  MFC: r196410: fix timewait expiration code when ticks goes negative after
  24 days of uptime.

Modified:
  stable/6/sys/netinet/tcp_timer.c

Modified: stable/6/sys/netinet/tcp_timer.c
==============================================================================
--- stable/6/sys/netinet/tcp_timer.c	Wed Aug 26 19:45:17 2009	(r196561)
+++ stable/6/sys/netinet/tcp_timer.c	Wed Aug 26 19:50:27 2009	(r196562)
@@ -247,7 +247,7 @@ tcp_timer_2msl_tw(int reuse)
 	INP_INFO_WLOCK_ASSERT(&tcbinfo);
 	for (;;) {
 		tw = TAILQ_FIRST(&twq_2msl);
-		if (tw == NULL || (!reuse && tw->tw_time > ticks))
+		if (tw == NULL || (!reuse && (int)(tw->tw_time - ticks) > 0))
 			break;
 		INP_LOCK(tw->tw_inpcb);
 		tcp_twclose(tw, reuse);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200908261950.n7QJoRta072093>