The reserved port range is defined in netinet/in.h. Typically,
IPPORT_RESERVED is 1024, at least on Solaris.
More information is available in inet(7P), but this is the relevant
portion of that manpage:
The local port address specified in a bind(3SOCKET) call is
restricted to be greater than IPPORT_RESERVED (defined in
<<netinet/in.h>>) unless the creating process is running as the
superuser, providing a space of protected port numbers. In
addition, the local port address must not be in use by any
socket of same address family and type. Requests to bind sockets
to port numbers being used by other sockets return the error
EADDRINUSE. If the local port address is specified as 0, then
the system picks a unique port address greater than
IPPORT_RESERVED. A unique local port address is also picked
when a socket which is not bound is used in a connect(3SOCKET)
or sendto (see send(3SOCKET)) call. This allows programs which
do not care which local port number is used to set up TCP
connections by simply calling socket(3SOCKET) and then
connect(3SOCKET), and to send UDP datagrams with a
socket(3SOCKET) call followed by a sendto() call.
The range you've chosen is in the reserved range, so unless you're root
(or have the appropriate privilege), the networking stack will prevent
you from binding to those sockets.
-j
On Thu, Jul 10, 2008 at 05:47:14PM -0700, Teresa Chinn wrote:
> Is there a list of reserved port numbers that shouldn't be used for
> the repositories? When I tried using 101-104, the following message
> was displayed in my browser:
>
>
> This address is restricted
>
> This address uses a network port which is normally used for purposes
> other than Web browsing. Firefox has canceled the request for your
> protection.
>
>
> Thanks,
> Teresa
> _______________________________________________
> pkg-discuss mailing list
> [email protected]
> http://mail.opensolaris.org/mailman/listinfo/pkg-discuss
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss