diff options
author | rpaulo <rpaulo@FreeBSD.org> | 2008-03-04 19:16:21 +0000 |
---|---|---|
committer | rpaulo <rpaulo@FreeBSD.org> | 2008-03-04 19:16:21 +0000 |
commit | 74f471aa5cf5bd53bce113fed3d0f77b5dbb534b (patch) | |
tree | 064c21c9a6ada7c2e05994e23247134c92d7a6cb /lib/libthr/thread/thr_init.c | |
parent | a60b2dd234cc4b623d43cbf6258d173dcded14ca (diff) | |
download | FreeBSD-src-74f471aa5cf5bd53bce113fed3d0f77b5dbb534b.zip FreeBSD-src-74f471aa5cf5bd53bce113fed3d0f77b5dbb534b.tar.gz |
Change the default port range for outgoing connections by introducing
IPPORT_EPHEMERALFIRST and IPPORT_EPHEMERALLAST with values
10000 and 65535 respectively.
The rationale behind is that it makes the attacker's life more
difficult if he/she wants to guess the ephemeral port range and
also lowers the probability of a port colision (described in
draft-ietf-tsvwg-port-randomization-01.txt).
While there, remove code duplication in in_pcbbind_setup().
Submitted by: Fernando Gont <fernando at gont.com.ar>
Approved by: njl (mentor)
Reviewed by: silby, bms
Discussed on: freebsd-net
Diffstat (limited to 'lib/libthr/thread/thr_init.c')
0 files changed, 0 insertions, 0 deletions