diff options
author | silby <silby@FreeBSD.org> | 2002-03-22 03:28:11 +0000 |
---|---|---|
committer | silby <silby@FreeBSD.org> | 2002-03-22 03:28:11 +0000 |
commit | c260993d3befab3dffd257b8f5c8746e508fe300 (patch) | |
tree | 04da687f304866893800810966fee1aee184cc50 /sys/netinet | |
parent | 9c371e01e9abd74b4f678d66bfa384d46ab67901 (diff) | |
download | FreeBSD-src-c260993d3befab3dffd257b8f5c8746e508fe300.zip FreeBSD-src-c260993d3befab3dffd257b8f5c8746e508fe300.tar.gz |
Change the ephemeral port range from 1024-5000 to 49152-65535.
This increases the number of concurrent outgoing connections from ~4000
to ~16000. Other OSes (Solaris, OS X, NetBSD) and many other NAT
products have already made this change without ill effects, so we
should not run into any problems.
MFC after: 1 week
Diffstat (limited to 'sys/netinet')
-rw-r--r-- | sys/netinet/in_pcb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet/in_pcb.c b/sys/netinet/in_pcb.c index c7e4ecb..7631c44 100644 --- a/sys/netinet/in_pcb.c +++ b/sys/netinet/in_pcb.c @@ -80,8 +80,8 @@ struct in_addr zeroin_addr; */ int ipport_lowfirstauto = IPPORT_RESERVED - 1; /* 1023 */ int ipport_lowlastauto = IPPORT_RESERVEDSTART; /* 600 */ -int ipport_firstauto = IPPORT_RESERVED; /* 1024 */ -int ipport_lastauto = IPPORT_USERRESERVED; /* 5000 */ +int ipport_firstauto = IPPORT_HIFIRSTAUTO; /* 49152 */ +int ipport_lastauto = IPPORT_HILASTAUTO; /* 65535 */ int ipport_hifirstauto = IPPORT_HIFIRSTAUTO; /* 49152 */ int ipport_hilastauto = IPPORT_HILASTAUTO; /* 65535 */ |