diff options
author | peter <peter@FreeBSD.org> | 1996-01-19 08:00:58 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 1996-01-19 08:00:58 +0000 |
commit | 2f93f3daa7e31b316e927b2cd030e17cb036afae (patch) | |
tree | 237cf7a75d9ecd9287aa7ba3dbe87ad051f3e991 /sys/netinet/in.h | |
parent | 8fc8a772af22f6e03233d248fa2dbd9b5c2bdd7d (diff) | |
download | FreeBSD-src-2f93f3daa7e31b316e927b2cd030e17cb036afae.zip FreeBSD-src-2f93f3daa7e31b316e927b2cd030e17cb036afae.tar.gz |
Change the default local address range for IP from 1024 through 5000
to 20000 through 30000. These numbers are used for local IP port numbers
when an explicit address is not specified.
The values are sysctl modifiable under: net.inet.ip.port_{first|last}_auto
These numbers do not overlap with any known server addresses, without going
above 32768 which are "negative" on some other implementations.
20000 through 30000 is 2.5 times larger than the old range, but some have
suggested even that may not be enough... (gasp!) Setting a low address
of 10000 should be plenty.. :-)
Diffstat (limited to 'sys/netinet/in.h')
-rw-r--r-- | sys/netinet/in.h | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/sys/netinet/in.h b/sys/netinet/in.h index 175269e..48f5fab 100644 --- a/sys/netinet/in.h +++ b/sys/netinet/in.h @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * @(#)in.h 8.3 (Berkeley) 1/3/94 - * $Id: in.h,v 1.12 1995/11/01 17:18:26 wollman Exp $ + * $Id: in.h,v 1.13 1995/11/14 20:33:57 phk Exp $ */ #ifndef _NETINET_IN_H_ @@ -75,6 +75,20 @@ #define IPPORT_USERRESERVED 5000 /* + * Range of ports for automatic assignment to local addresses that + * have not explicitly specified an address. + * + * These can be overridden at kernel config time, and are used to init + * sysctl variables. The sysctl variables can be changed at runtime. + */ +#ifndef IPPORT_FIRSTAUTO +#define IPPORT_FIRSTAUTO 20000 +#endif +#ifndef IPPORT_LASTAUTO +#define IPPORT_LASTAUTO 30000 +#endif + +/* * Internet address (a structure for historical reasons) */ struct in_addr { |