I would like to take this opportunity to tell people that OpenBSD
allocates inet port randomly.
bindresvport() and rresvport() will return a random port between 600
and 1023.
A bind() with sin.sin_port == 0 will return a random port in a range
> 1024.
We think this is a big win, though the bugs that are exploitable with
predictable port ranges are quite difficult to play with (and rare).
People in the know have commended us for making this change. We have
also found a few protocol problems that are much harder to exploit
with this change.
----
This space not left unintentionally unblank. deraadt@openbsd.org
www.OpenBSD.org -- We're fixing security problems so you can sleep at night.
(If it wasn't so fascinating I might get some sleep myself...)