6 .Nd network configuration data base
12 file defines a list of
14 describing their semantics and protocol.
17 this file is only used by the RPC library code.
19 Entries have the following format:
21 .Ar network_id semantics flags family protoname device libraries
23 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.
30 .Bl -tag -width tpi_cots_ord -offset indent
32 Connectionless transport.
34 Connection-oriented transport
36 Connection-oriented, ordered transport.
41 This field is either blank (specified by
45 meaning visible to the
49 The protocol family of the transport.
50 This is currently one of:
51 .Bl -tag -width loopback -offset indent
66 The name of the protocol used for this transport.
67 Can currently be either
72 This field is always empty in
75 This field is always empty in
79 The order of entries in this file will determine which transport will
80 be preferred by the RPC library code, given a match on a specified
82 For example, if a sample network config file would look like this:
83 .Bd -literal -offset indent
84 udp6 tpi_clts v inet6 udp - -
85 tcp6 tpi_cots_ord v inet6 tcp - -
86 udp tpi_clts v inet udp - -
87 tcp tpi_cots_ord v inet tcp - -
88 rawip tpi_raw - inet - - -
89 local tpi_cots_ord - loopback - - -
92 then using the network type
94 in calls to the RPC library function (see
96 will make the code first try
102 and associated functions will parse this file and return structures of
103 the following format:
106 char *nc_netid; /* Network ID */
107 unsigned long nc_semantics; /* Semantics (see below) */
108 unsigned long nc_flag; /* Flags (see below) */
109 char *nc_protofmly; /* Protocol family */
110 char *nc_proto; /* Protocol name */
111 char *nc_device; /* Network device pathname (unused) */
112 unsigned long nc_nlookups; /* Number of lookup libs (unused) */
113 char **nc_lookups; /* Names of the libraries (unused) */
114 unsigned long nc_unused[9]; /* reserved */
118 .Bl -tag -width /etc/netconfig -compact
119 .It Pa /etc/netconfig