z/OS UNIX System Services Planning
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


Specifying INADDRANYPORT and INADDRANYCOUNT

z/OS UNIX System Services Planning
GA32-0884-00

These parameters only apply to CINET.

Port reservation information for port 0, INADDR_ANY binds is required for the AF_INET domain with a CINET configuration. Specify this information on the INADDRANYPORT and INADDRANYCOUNT parameters on the NETWORK statement for AF_INET in BPXPRMxx. This also includes the port 0, IN6ADDR_ANY binds for AF_INET6.

If you omit both INADDRANYPORT and INADDRANYCOUNT, then those values will be defaulted. Be careful when allowing the default values because they may not be the values you want. If you do not want to support any reserved ports, then specify INADDRANYPORT(xxx) without specifying INADDRANYCOUNT. In this case, xxx can be any valid numeric value.

INADDRANYPORT specifies the starting port number to be reserved for use by application programs that issue port 0, INADDR_ANY binds. INADDRANYCOUNT specifies how many ports to reserve.

If you are running a CINET configuration and you specify the INADDRANYPORT and INADDRANYCOUNT parameters, you must specify the same values to each transport provider that is specified on the SUBFILESYSTYPE statement.

Refer to the documentation for that transport provider to determine how the port reservation information is specified. For IBM's z/OS Communications Services, use the PORTRANGE profile statement.

If the transport provider does not support the port reservation requirement, you must still specify INADDRANYPORT and INADDRANYCOUNT to process port 0, INADDR_ANY binds. In this case, you should specify a high port number for INADDRANYPORT (for example, 4000) to improve the probability that the port will be available on the transport provider. If the port is not available on any of the transport providers connected to z/OS UNIX, a port 0, INADDR_ANY bind will fail with an ERRNO of EADDRINUSE.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014