Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 20 Oct 2008 18:56:00 +0000 (UTC)
From:      "Bjoern A. Zeeb" <bz@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r184097 - head/sys/netinet
Message-ID:  <200810201856.m9KIu0JT078529@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bz
Date: Mon Oct 20 18:56:00 2008
New Revision: 184097
URL: http://svn.freebsd.org/changeset/base/184097

Log:
  Update a comment which to my reading had been misplaced in rev. 1.12
  already (but probably had been way above as the code was there twice)
  and describe what was last changed in rev. 1.199 there (which now is
  in sync with in6_src.c r184096).
  
  Pointed at by:	mlaier
  MFC after:	2 mmonths

Modified:
  head/sys/netinet/in_pcb.c

Modified: head/sys/netinet/in_pcb.c
==============================================================================
--- head/sys/netinet/in_pcb.c	Mon Oct 20 18:43:59 2008	(r184096)
+++ head/sys/netinet/in_pcb.c	Mon Oct 20 18:56:00 2008	(r184097)
@@ -458,8 +458,9 @@ in_pcbbind_setup(struct inpcb *inp, stru
 		if (pcbinfo != &V_udbinfo)
 			V_ipport_tcpallocs++;
 		/*
-		 * Simple check to ensure all ports are not used up causing
-		 * a deadlock here.
+		 * Instead of having two loops further down counting up or down
+		 * make sure that first is always <= last and go with only one
+		 * code path implementing all logic.
 		 */
 		if (first > last) {
 			aux = first;



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