summaryrefslogtreecommitdiffstats
path: root/sys/netinet/in_pcb.c
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>1996-05-31 05:11:22 +0000
committerpeter <peter@FreeBSD.org>1996-05-31 05:11:22 +0000
commit47ebff663e363631cb33744a6c1a5ad2be8e82c5 (patch)
tree15dc54caee76b4a9fda219e12716a6ee4fc864c8 /sys/netinet/in_pcb.c
parent3259f4bdcaa61a9bcde732df3f930ee3f278b563 (diff)
downloadFreeBSD-src-47ebff663e363631cb33744a6c1a5ad2be8e82c5.zip
FreeBSD-src-47ebff663e363631cb33744a6c1a5ad2be8e82c5.tar.gz
More closely preserve the original operation of rresvport() when using
IP_PORTRANGE_LOW.
Diffstat (limited to 'sys/netinet/in_pcb.c')
-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 2f735ff..7b67888 100644
--- a/sys/netinet/in_pcb.c
+++ b/sys/netinet/in_pcb.c
@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)in_pcb.c 8.4 (Berkeley) 5/24/95
- * $Id: in_pcb.c,v 1.17 1996/02/22 21:32:21 peter Exp $
+ * $Id: in_pcb.c,v 1.18 1996/03/11 15:13:13 davidg Exp $
*/
#include <sys/param.h>
@@ -181,7 +181,8 @@ in_pcbbind(inp, nam)
if (error = suser(p->p_ucred, &p->p_acflag))
return (EACCES);
first = IPPORT_RESERVED - 1; /* 1023 */
- last = 1;
+ last = IPPORT_RESERVED / 2; /* traditional - 512 */
+ *lastport = first; /* restart each time */
} else {
first = ipport_firstauto; /* sysctl */
last = ipport_lastauto;
OpenPOWER on IntegriCloud