Move /var/svc/log to /var/log/svc
[unleashed/lotheac.git] / share / man / man4 / netconfig.4
blob074ab8627b27d097484341015fa955f5ece765b0
1 '\" te
2 .\"  Copyright 1989 AT&T
3 .\" Copyright (C) 1999, Sun Microsystems, Inc. All Rights Reserved
4 .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License").  You may not use this file except in compliance with the License.
5 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing.  See the License for the specific language governing permissions and limitations under the License.
6 .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE.  If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
7 .TH NETCONFIG 4 "Nov 18, 2003"
8 .SH NAME
9 netconfig \- network configuration database
10 .SH SYNOPSIS
11 .LP
12 .nf
13 \fB/etc/netconfig\fR
14 .fi
16 .SH DESCRIPTION
17 .sp
18 .LP
19 The network configuration database, \fB/etc/netconfig\fR, is a system file used
20 to store information about networks that are connected to the system. The
21 \fBnetconfig\fR database and the routines that access it (see
22 \fBgetnetconfig\fR(3NSL)) are part of the Network Selection component. The
23 Network Selection component also includes \fBgetnetpath\fR(3NSL) routines to
24 provide application-specific network search paths. These routines access the
25 \fBnetconfig\fR database based on the environment variable \fBNETPATH\fR. See
26 \fBenviron\fR(5).
27 .sp
28 .LP
29 \fBnetconfig\fR contains an entry for each network available on the system.
30 Entries are separated by newlines. Fields are separated by whitespace and occur
31 in the order in which they are described below. Whitespace can be embedded as
32 ``\fB\e\fR\fIblank\fR'' or ``\fB\e\fR\fItab\fR''. Backslashes may be embedded
33 as ``\fB\e\e\fR\&''. Lines in \fB/etc/netconfig\fR that begin with a \fB#\fR
34 (hash) in column 1 are treated as comments.
35 .sp
36 .LP
37 Each of the valid lines in the \fBnetconfig\fR database correspond to an
38 available transport. Each entry is of the form:
39 .sp
40 .in +2
41 .nf
42 network ID  semantics  flag  protocol-family \e
43  protocol-name  network-device  translation-libraries
44 .fi
45 .in -2
47 .sp
48 .ne 2
49 .na
50 \fB\fInetwork ID\fR\fR
51 .ad
52 .RS 25n
53 A string used to uniquely identify a network. \fInetwork ID\fR consists of
54 non-null characters, and has a length of at least 1. No maximum length is
55 specified. This namespace is locally significant and the local system
56 administrator is the naming authority. All \fInetwork ID\fRs on a system must
57 be unique.
58 .RE
60 .sp
61 .ne 2
62 .na
63 \fB\fIsemantics\fR\fR
64 .ad
65 .RS 25n
66 The \fIsemantics\fR field is a string identifying the ``semantics'' of the
67 network, that is, the set of services it supports, by identifying the service
68 interface it provides. The \fIsemantics\fR field is mandatory. The following
69 semantics are recognized.
70 .sp
71 .ne 2
72 .na
73 \fB\fBtpi_clts\fR\fR
74 .ad
75 .RS 16n
76 Transport Provider Interface, connectionless
77 .RE
79 .sp
80 .ne 2
81 .na
82 \fB\fBtpi_cots\fR\fR
83 .ad
84 .RS 16n
85 Transport Provider Interface, connection oriented
86 .RE
88 .sp
89 .ne 2
90 .na
91 \fB\fBtpi_cots_ord\fR\fR
92 .ad
93 .RS 16n
94 Transport Provider Interface, connection oriented, supports orderly release.
95 .RE
97 .RE
99 .sp
100 .ne 2
102 \fB\fIflag\fR\fR
104 .RS 25n
105 The \fIflag\fR field records certain two-valued (``true'' and ``false'')
106 attributes of networks. \fIflag\fR is a string composed of a combination of
107 characters, each of which indicates the value of the corresponding attribute.
108 If the character is present, the attribute is ``true.'' If the character is
109 absent, the attribute is ``false.'' ``\fB-\fR'' indicates that none of the
110 attributes are present. Only one character is currently recognized:
112 .ne 2
114 \fB\fBv\fR\fR
116 .RS 5n
117 Visible (``default'') network. Used when the environment variable \fBNETPATH\fR
118 is unset.
124 .ne 2
126 \fB\fIprotocol family\fR\fR
128 .RS 25n
129 The \fIprotocol family\fR and \fIprotocol name\fR fields are provided for
130 protocol-specific applications. The \fIprotocol family\fR field contains a
131 string that identifies a protocol family. The \fIprotocol family\fR identifier
132 follows the same rules as those for \fInetwork ID\fRs; the string consists of
133 non-null characters, it has a length of at least \fB1\fR, and there is no
134 maximum length specified. A ``\fB\(mi\fR\&'' in the \fIprotocol family\fR field
135 indicates that no protocol family identifier applies (the network is
136 experimental). The following are examples:
138 .ne 2
140 \fB\fBloopback\fR\fR
142 .RS 13n
143 Loopback (local to host).
147 .ne 2
149 \fB\fBinet\fR\fR
151 .RS 13n
152 Internetwork: UDP, TCP, and the like.
156 .ne 2
158 \fB\fBinet6\fR\fR
160 .RS 13n
161 Internetwork over IPv6: UDP, TCP, and the like.
165 .ne 2
167 \fB\fBimplink\fR\fR
169 .RS 13n
170 ARPANET imp addresses
174 .ne 2
176 \fB\fBpup\fR\fR
178 .RS 13n
179 PUP protocols: for example, BSP
183 .ne 2
185 \fB\fBchaos\fR\fR
187 .RS 13n
188 MIT CHAOS protocols
192 .ne 2
194 \fB\fBns\fR\fR
196 .RS 13n
197 XEROX NS protocols
201 .ne 2
203 \fB\fBnbs\fR\fR
205 .RS 13n
206 NBS protocols
210 .ne 2
212 \fB\fBecma\fR\fR
214 .RS 13n
215 European Computer Manufacturers Association
219 .ne 2
221 \fB\fBdatakit\fR\fR
223 .RS 13n
224 DATAKIT protocols
228 .ne 2
230 \fB\fBccitt\fR\fR
232 .RS 13n
233 CCITT protocols, X.25, and the like.
237 .ne 2
239 \fB\fBsna\fR\fR
241 .RS 13n
242 IBM SNA
246 .ne 2
248 \fB\fBdecnet\fR\fR
250 .RS 13n
251 DECNET
255 .ne 2
257 \fB\fBdli\fR\fR
259 .RS 13n
260 Direct data link interface
264 .ne 2
266 \fB\fBlat\fR\fR
268 .RS 13n
273 .ne 2
275 \fB\fBhylink\fR\fR
277 .RS 13n
278 NSC Hyperchannel
282 .ne 2
284 \fB\fBappletalk\fR\fR
286 .RS 13n
287 Apple Talk
291 .ne 2
293 \fB\fBnit\fR\fR
295 .RS 13n
296 Network Interface Tap
300 .ne 2
302 \fB\fBieee802\fR\fR
304 .RS 13n
305 IEEE 802.2; also ISO 8802
309 .ne 2
311 \fB\fBosi\fR\fR
313 .RS 13n
314 Umbrella for all families used by OSI (for example, protosw lookup)
318 .ne 2
320 \fB\fBx25\fR\fR
322 .RS 13n
323 CCITT X.25 in particular
327 .ne 2
329 \fB\fBosinet\fR\fR
331 .RS 13n
332 AFI = 47, IDI = 4
336 .ne 2
338 \fB\fBgosip\fR\fR
340 .RS 13n
341 U.S. Government OSI
347 .ne 2
349 \fB\fIprotocol name\fR\fR
351 .RS 25n
352 The \fIprotocol name\fR field contains a string that identifies a protocol. The
353 \fIprotocol name\fR identifier follows the same rules as those for \fInetwork
354 ID\fRs; that is, the string consists of non-NULL characters, it has a length of
355 at least \fB1\fR, and there is no maximum length specified. A ``\fB\(mi\fR\&''
356 indicates that none of the names listed apply. The following protocol names are
357 recognized.
359 .ne 2
361 \fB\fBtcp\fR\fR
363 .RS 8n
364 Transmission Control Protocol
368 .ne 2
370 \fB\fBudp\fR\fR
372 .RS 8n
373 User Datagram Protocol
377 .ne 2
379 \fB\fBicmp\fR\fR
381 .RS 8n
382 Internet Control Message Protocol
388 .ne 2
390 \fB\fInetwork device\fR\fR
392 .RS 25n
393 The \fInetwork device\fR is the full pathname of the device used to connect to
394 the transport provider. Typically, this device will be in the \fB/dev\fR
395 directory. The \fInetwork device\fR must be specified.
399 .ne 2
401 \fB\fItranslation libraries\fR\fR
403 .RS 25n
404 The \fIname-to-address translation libraries\fR support a ``directory service''
405 (a name-to-address mapping service) for the network. A ``\fB\(mi\fR\&'' in this
406 field indicates the absence of any \fItranslation libraries\fR. This has a
407 special meaning for networks of the protocol family \fBinet :\fR its
408 name-to-address mapping is provided by the name service switch based on the
409 entries for \fBhosts\fR and \fBservices\fR in \fBnsswitch.conf\fR(4). For
410 networks of other families, a ``\fB\(mi\fR\&'' indicates non-functional
411 name-to-address mapping. Otherwise, this field consists of a comma-separated
412 list of pathnames to dynamically linked libraries. The pathname of the library
413 can be either absolute or relative. See \fBdlopen\fR(3C).
418 Each field corresponds to an element in the \fBstruct netconfig\fR structure.
419 \fBstruct netconfig\fR and the identifiers described on this manual page are
420 defined in <\fBnetconfig.h\fR>. This structure includes the following members:
422 .ne 2
424 \fB\fBchar *\fR\fInc_netid\fR\fR
426 .RS 30n
427 Network ID, including \fBNULL\fR terminator.
431 .ne 2
433 \fB\fBunsigned long\fR \fInc_semantics\fR\fR
435 .RS 30n
436 Semantics.
440 .ne 2
442 \fB\fBunsigned long\fR \fInc_flag\fR\fR
444 .RS 30n
445 Flags.
449 .ne 2
451 \fB\fBchar *\fR\fInc_protofmly\fR\fR
453 .RS 30n
454 Protocol family.
458 .ne 2
460 \fB\fBchar *\fR\fInc_proto\fR\fR
462 .RS 30n
463 Protocol name.
467 .ne 2
469 \fB\fBchar *\fR\fInc_device\fR\fR
471 .RS 30n
472 Full pathname of the network device.
476 .ne 2
478 \fB\fBunsigned long\fR \fInc_nlookups\fR\fR
480 .RS 30n
481 Number of directory lookup libraries.
485 .ne 2
487 \fB\fBchar **\fR\fInc_lookups\fR\fR
489 .RS 30n
490 Names of the name-to-address translation libraries.
494 .ne 2
496 \fB\fBunsigned long\fR \fInc_unused[9]\fR\fR
498 .RS 30n
499 Reserved for future expansion.
504 The \fInc_semantics\fR field takes the following values, corresponding to the
505 semantics identified above:
507 .in +2
508 \fBNC_TPI_CLTS\fR
509 .in -2
511 .in +2
512 \fBNC_TPI_COTS\fR
513 .in -2
515 .in +2
516 \fBNC_TPI_COTS_ORD\fR
517 .in -2
520 The \fInc_flag\fR field is a bitfield. The following bit, corresponding to the
521 attribute identified above, is currently recognized. \fBNC_NOFLAG\fR indicates
522 the absence of any attributes.
524 .in +2
526 \fBNC_VISIBLE\fR
528 .in -2
530 .SH EXAMPLES
532 \fBExample 1 \fRA Sample \fBnetconfig\fR File
535 Below is a sample \fBnetconfig\fR file:
538 .in +2
541 #  The "Network Configuration" File.
543 # Each entry is of the form:
545 #   <networkid> <semantics> <flags> <protofamily> <protoname> <device>
546 #         <nametoaddrlibs>
548 # The "-" in <nametoaddrlibs> for inet family transports indicates
549 # redirection to the name service switch policies for "hosts" and
550 # "services". The "-" may be replaced by nametoaddr libraries that
551 # comply with the SVr4 specs, in which case the name service switch
552 # will not be used for netdir_getbyname, netdir_getbyaddr,
553 # gethostbyname, gethostbyaddr, getservbyname, and getservbyport.
554 # There are no nametoaddr_libs for the inet family in Solaris anymore.
556 udp6       tpi_clts      v   inet6   udp    /dev/udp6       -
557 tcp6       tpi_cots_ord  v   inet6   tcp    /dev/tcp6       -
558 udp        tpi_clts      v   inet    udp    /dev/udp        -
559 tcp        tpi_cots_ord  v   inet    tcp    /dev/tcp        -
560 rawip      tpi_raw       -   inet    -      /dev/rawip      -
561 ticlts     tpi_clts      v   loopback -      /dev/ticlts     straddr.so
562 ticotsord  tpi_cots_ord  v   loopback -      /dev/ticotsord  straddr.so
563 ticots     tpi_cots      v   loopback -      /dev/ticots     straddr.so
565 .in -2
567 .SH FILES
569 .ne 2
571 \fB<\fBnetconfig.h\fR>\fR
573 .RS 17n
577 .SH SEE ALSO
580 \fBdlopen\fR(3C), \fBgetnetconfig\fR(3NSL), \fBgetnetpath\fR(3NSL),
581 \fBnsswitch.conf\fR(4)
584 \fISystem Administration Guide: IP Services\fR