1 .\" $NetBSD: netconfig.5,v 1.6 2002/01/21 17:44:45 wiz Exp $
7 .Nd network configuration data base
13 file defines a list of
15 describing their semantics and protocol. In
17 this file is only used by the RPC library code.
19 Entries have the following format:
20 .Dl network_id semantics flags family protoname device libraries
22 Entries consist of the following fields:
24 .Bl -tag -width network_id
26 The name of the transport described.
28 Describes the semantics of the transport. This can be one of:
29 .Bl -tag -width tpi_cots_ord -offset indent
31 Connectionless transport.
33 Connection-oriented transport
35 Connection-oriented, ordered transport.
40 This field is either blank (specified by
44 meaning visible to the
48 The protocol family of the transport. This is currently one of:
49 .Bl -tag -width loopback -offset indent
64 The name of the protocol used for this transport. Can currently be either
69 This field is always empty in
72 This field is always empty in
76 The order of entries in this file will determine which transport will
77 be preferred by the RPC library code, given a match on a specified
78 network type. For example, if a sample network config file would
81 .Bd -literal -offset indent
82 udp6 tpi_clts v inet6 udp - -
83 tcp6 tpi_cots_ord v inet6 tcp - -
84 udp tpi_clts v inet udp - -
85 tcp tpi_cots_ord v inet tcp - -
86 rawip tpi_raw - inet - - -
87 local tpi_cots_ord - loopback - - -
90 then using the network type
92 in calls to the RPC library function (see
94 will make the code first try
100 and associated functions will parse this file and return structures of
101 the following format:
104 char *nc_netid; /* Network ID */
105 unsigned long nc_semantics; /* Semantics (see below) */
106 unsigned long nc_flag; /* Flags (see below) */
107 char *nc_protofmly; /* Protocol family */
108 char *nc_proto; /* Protocol name */
109 char *nc_device; /* Network device pathname (unused) */
110 unsigned long nc_nlookups; /* Number of lookup libs (unused) */
111 char **nc_lookups; /* Names of the libraries (unused) */
112 unsigned long nc_unused[9]; /* reserved */