summaryrefslogtreecommitdiffstats
path: root/sys/netinet/in_pcb.h
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>1996-10-30 06:13:10 +0000
committerpeter <peter@FreeBSD.org>1996-10-30 06:13:10 +0000
commit0ddb96bd1e62a8fbdb72a3a0ddaf0584557a132a (patch)
tree216e61a11d86f1c4ab8e8e474c3b75095748ef85 /sys/netinet/in_pcb.h
parent89da5daba54bd5531e14afb288106143061bc3a9 (diff)
downloadFreeBSD-src-0ddb96bd1e62a8fbdb72a3a0ddaf0584557a132a.zip
FreeBSD-src-0ddb96bd1e62a8fbdb72a3a0ddaf0584557a132a.tar.gz
Fix braino on my part. When we have three different port ranges (default,
"high" and "secure"), we can't use a single variable to track the most recently used port in all three ranges.. :-] This caused the next transient port to be allocated from the start of the range more often than it should.
Diffstat (limited to 'sys/netinet/in_pcb.h')
-rw-r--r--sys/netinet/in_pcb.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/netinet/in_pcb.h b/sys/netinet/in_pcb.h
index 685c66d..723d4ec 100644
--- a/sys/netinet/in_pcb.h
+++ b/sys/netinet/in_pcb.h
@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)in_pcb.h 8.1 (Berkeley) 6/10/93
- * $Id: in_pcb.h,v 1.12 1996/08/23 18:59:07 phk Exp $
+ * $Id: in_pcb.h,v 1.13 1996/10/07 19:06:08 davidg Exp $
*/
#ifndef _NETINET_IN_PCB_H_
@@ -70,6 +70,8 @@ struct inpcbinfo {
struct inpcbhead *hashbase;
unsigned long hashsize;
unsigned short lastport;
+ unsigned short lastlow;
+ unsigned short lasthi;
};
/* flags in inp_flags: */
OpenPOWER on IntegriCloud