netconfig.4 (2010 09)

n
netconfig(4) netconfig(4)
network_device
The network_device is the full pathname of the device used to connect to the transport pro-
vider. Typically, this device will be in the /dev directory. The network_device must be
specified.
translation_libraries
The name-to-address translation libraries support a ‘‘directory service’’ (a name-to-address
mapping service) for the network. A ‘‘-’’ in this field indicates the absence of any
translation_libraries. This has a special meaning for networks of the protocol family inet :
its name-to-address mapping is provided by the name service switch based on the entries for
hosts and services in
switch()(see nsswitch.conf(4)). For networks of other families, a ‘‘-’’
indicates non-functional name-to-address mapping. Otherwise, this field consists of a
comma-separated list of pathnames to dynamically linked libraries. The pathname of the
library can be either absolute or relative.
Itanium(R)-based libraries are located in the
/usr/lib/hpux
[32|64] directories. For
backward compatibility appropriate links are provided in
/usr/lib; for example,
/usr/lib/libstraddr.so.1
is linked to
/usr/lib/libstraddr.1
. If the library
field is modified and both Itanium-based and PA-RISC libraries are provided, links must be
created in the
/usr/lib directory to accommodate backward compatibility to PA-RISC
library naming conventions. If an absolute library pathname is specified for a particular
service, the applications using the service work only for that architecture.
Each field corresponds to an element in the
struct netconfig structure. struct netconfig and
the identifiers described on this manual page are defined in <netconfig.h>
. This structure includes
the following members:
char *nc_netid Network ID, including NULL terminator.
unsigned long nc_semantics Semantics.
unsigned long nc_flag Flags.
char *nc_protofmly Protocol family.
char *nc_proto Protocol name.
char *nc_device Full pathname of the network device.
unsigned long nc_nlookups Number of directory lookup libraries.
char **nc_lookups Names of the name-to-address translation libraries.
unsigned long nc_unused[9] Reserved for future expansion.
The nc_semantics field takes the following values, corresponding to the semantics identified above:
NC_TPI_CLTS
NC_TPI_COTS_ORD
The nc_flag field is a bitfield. The following bit, corresponding to the attribute identified above, is
currently recognized. NC_NOFLAG indicates the absence of any attributes.
NC_VISIBLE
EXAMPLES
Below is a sample netconfig file:
#
# The ’Network Configuration’ File.
#
# Each entry is of the form:
#
# <network_id> <semantics> <flags> <protofamily> <protoname> <device> \
# <nametoaddr_libs>
#
# The ’-’ in <nametoaddr_libs> for inet family transports indicates
# redirection to the name service switch policies for ’hosts’ and
# ’services’. The ’-’ may be replaced by nametoaddr libraries that
# comply with the SVr4 specs, in which case the name service switch
# will not be used for netdir_getbyname, netdir_getbyaddr,
2 Hewlett-Packard Company 2 HP-UX 11i Version 3: September 2010