svn commit: r196562 - stable/6/sys/netinet
Peter Wemm
peter at FreeBSD.org
Wed Aug 26 19:50:28 UTC 2009
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);
More information about the svn-src-stable-6
mailing list