svn commit: r184097 - head/sys/netinet
Bjoern A. Zeeb
bz at FreeBSD.org
Mon Oct 20 18:56:01 UTC 2008
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;
More information about the svn-src-all
mailing list