PERFORCE change 113484 for review

Marko Zec zec at FreeBSD.org
Wed Jan 24 22:47:01 UTC 2007


http://perforce.freebsd.org/chv.cgi?CH=113484

Change 113484 by zec at zec_tca51 on 2007/01/24 22:46:29

	Back out a few bits leaked from an uncommited set of
	changes.

Affected files ...

.. //depot/projects/vimage/src/sys/netinet/tcp_subr.c#9 edit

Differences ...

==== //depot/projects/vimage/src/sys/netinet/tcp_subr.c#9 (text+ko) ====

@@ -189,17 +189,16 @@
 static int
 tcptw_auto_size(void)
 {
-	INIT_VNET_INET(curvnetb);
 	int halfrange;
 
 	/*
 	 * Max out at half the ephemeral port range so that TIME_WAIT
 	 * sockets don't tie up too many ephemeral ports.
 	 */
-	if (V_ipport_lastauto > V_ipport_firstauto)
-		halfrange = (V_ipport_lastauto - V_ipport_firstauto) / 2;
+	if (ipport_lastauto > ipport_firstauto)
+		halfrange = (ipport_lastauto - ipport_firstauto) / 2;
 	else
-		halfrange = (V_ipport_firstauto - V_ipport_lastauto) / 2;
+		halfrange = (ipport_firstauto - ipport_lastauto) / 2;
 	/* Protect against goofy port ranges smaller than 32. */
 	return (imin(imax(halfrange, 32), maxsockets / 5));
 }


More information about the p4-projects mailing list