diff options
author | peter <peter@FreeBSD.org> | 1996-05-31 05:11:22 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 1996-05-31 05:11:22 +0000 |
commit | 47ebff663e363631cb33744a6c1a5ad2be8e82c5 (patch) | |
tree | 15dc54caee76b4a9fda219e12716a6ee4fc864c8 /sys/netinet | |
parent | 3259f4bdcaa61a9bcde732df3f930ee3f278b563 (diff) | |
download | FreeBSD-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')
-rw-r--r-- | sys/netinet/in_pcb.c | 5 |
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; |