| is
|> | different for each OS.
|> | In particular I m trying to find the range for HP-UX.
|>
|> First be sure you are not running as root. Start with the range
|> of 0-65535. Divide the range in half. Try to listen on the port
|> in the middle. If failure, recurse the upper half. If success,
|> recurse the lower half. It will be narrowed down in 16 tries.
|
| what is the basis for this. Are you saying that if a listen() ed port
| is not in the ephemeral range, it will fail. Or did you confuse the
| ports 0-1024 that requires root privilage to listen to with ephemeral
| ports.
As far as I understood your needs, I thought they were the same.
But I guess you have some other interest in the minor difference.
Maybe there is no means available to determine this at all. I do
not know of any specific system call to reveal it. Some systems,
such as OpenBSD, work hard to obscure things and I think these
are done as well.
--
-----------------------------------------------------------------
| Phil Howard - KA9WGN | Dallas | http://linuxhomepage.com/ |
-----------------------------------------------------------------