summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbz <bz@FreeBSD.org>2008-10-20 18:56:00 +0000
committerbz <bz@FreeBSD.org>2008-10-20 18:56:00 +0000
commit4e82aa0737796e3d57621842ae7914381cf006c1 (patch)
tree7eed0b6bbe76ece782c1987ce2ba22d62ab4399f
parent0991899a98572c9cfb8466895fc7966cdd80fa66 (diff)
downloadFreeBSD-src-4e82aa0737796e3d57621842ae7914381cf006c1.zip
FreeBSD-src-4e82aa0737796e3d57621842ae7914381cf006c1.tar.gz
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
-rw-r--r--sys/netinet/in_pcb.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/netinet/in_pcb.c b/sys/netinet/in_pcb.c
index d76ed16..45c4798 100644
--- a/sys/netinet/in_pcb.c
+++ b/sys/netinet/in_pcb.c
@@ -458,8 +458,9 @@ in_pcbbind_setup(struct inpcb *inp, struct sockaddr *nam, in_addr_t *laddrp,
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;
OpenPOWER on IntegriCloud