svn commit: r319401 - stable/11/sys/netinet

Michael Tuexen tuexen at FreeBSD.org
Thu Jun 1 08:42:54 UTC 2017


Author: tuexen
Date: Thu Jun  1 08:42:53 2017
New Revision: 319401
URL: https://svnweb.freebsd.org/changeset/base/319401

Log:
  MFC r317244:
  
  Represent "a syncache overflow hasn't happend yet" by using
  -(SYNCOOKIE_LIFETIME + 1) instead of INT64_MIN, since it is
  good enough and works when time_t is int32 or int64.
  This fixes the issue reported by cy@ on i386.
  
  Reported by:		cy

Modified:
  stable/11/sys/netinet/tcp_syncache.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/netinet/tcp_syncache.c
==============================================================================
--- stable/11/sys/netinet/tcp_syncache.c	Thu Jun  1 08:32:35 2017	(r319400)
+++ stable/11/sys/netinet/tcp_syncache.c	Thu Jun  1 08:42:53 2017	(r319401)
@@ -252,7 +252,8 @@ syncache_init(void)
 			 &V_tcp_syncache.hashbase[i].sch_mtx, 0);
 		V_tcp_syncache.hashbase[i].sch_length = 0;
 		V_tcp_syncache.hashbase[i].sch_sc = &V_tcp_syncache;
-		V_tcp_syncache.hashbase[i].sch_last_overflow = INT64_MIN;
+		V_tcp_syncache.hashbase[i].sch_last_overflow =
+		    -(SYNCOOKIE_LIFETIME + 1);
 	}
 
 	/* Create the syncache entry zone. */


More information about the svn-src-stable mailing list