1 '\" te
2 .\" Copyright (c) 2008, Sun Microsystems, Inc. All Rights Reserved
3 .\" 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.
4 .\" 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.
5 .\" 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]
6 .TH SOCONFIG 1M "Oct 29, 2008"
7 .SH NAME
8 soconfig \- configure transport providers for use by sockets
9 .SH SYNOPSIS
10 .LP
11 .nf
12 \fB/sbin/soconfig\fR \fB-f\fR \fIfile\fR
13 .fi
14
15 .LP
16 .nf
17 \fB/sbin/soconfig\fR \fIfamily\fR \fItype\fR \fIprotocol\fR [\fIpath\fR]
18 .fi
19
20 .SH DESCRIPTION
21 .sp
22 .LP
23 The \fBsoconfig\fR utility configures the transport provider driver for use
24 with sockets. It specifies how the family, type, and protocol parameters in the
25 \fBsocket\fR(3SOCKET) call are mapped to the name of a transport provider such
26 as \fB/dev/tcp\fR. This utility can be used to add an additional mapping or
27 remove a previous mapping.
28 .sp
29 .LP
30 The \fBinit\fR(1M) utility uses \fBsoconfig\fR with the \fBsock2path\fR(4) file
31 during the booting sequence.
32 .SH OPTIONS
33 .sp
34 .LP
35 The following options are supported:
36 .sp
37 .ne 2
38 .na
39 \fB\fB-f\fR \fIfile\fR\fR
40 .ad
41 .RS 11n
42 Set up the \fBsoconfig\fR configuration for each driver according to the
43 information stored in \fBfile\fR. A \fBsoconfig\fR file consists of lines of at
44 least the first three fields listed below, separated by spaces:
45 .sp
46 \fIfamily type protocol path\fR
47 .sp
48 These fields are described in the \fBOPERANDS\fR section below.
49 .sp
50 An example of \fBfile\fR can be found in the \fBEXAMPLES\fR section below.
51 .RE
52
53 .SH OPERANDS
54 .sp
55 .LP
56 The following operands are supported:
57 .sp
58 .ne 2
59 .na
60 \fB\fIfamily\fR\fR
61 .ad
62 .RS 17n
63 The protocol family as listed in the \fB/usr/include/sys/socket.h\fR file,
64 expressed as an integer.
65 .RE
66
139 .nf
140 # Family Type Protocol Module | Path
141 2 2 0 tcp
142 2 2 6 tcp
143
144 2 1 0 udp
145 2 1 17 udp
146
147 1 2 0 /dev/ticotsord
148 1 1 0 /dev/ticlts
149
150 2 4 0 icmp
151 .fi
152 .in -2
153 .sp
154
155 .SH FILES
156 .sp
157 .ne 2
158 .na
159 \fB\fB/etc/sock2path\fR\fR
160 .ad
161 .RS 18n
162 File containing mappings from sockets to transport providers.
163 .RE
164
165 .SH SEE ALSO
166 .sp
167 .LP
168 \fBinit\fR(1M), \fBsock2path\fR(4), \fBattributes\fR(5)
169 .sp
170 .LP
171 \fINetwork Interface Guide\fR
|
1 '\" te
2 .\" Copyright (c) 2008, Sun Microsystems, Inc. All Rights Reserved
3 .\" 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.
4 .\" 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.
5 .\" 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]
6 .TH SOCONFIG 1M "Apr 12, 2014"
7 .SH NAME
8 soconfig \- configure transport providers for use by sockets
9 .SH SYNOPSIS
10 .LP
11 .nf
12 \fB/sbin/soconfig\fR \fB-d\fR \fIdir\fR
13 .fi
14
15 .LP
16 .nf
17 \fB/sbin/soconfig\fR \fB-f\fR \fIfile\fR
18 .fi
19
20 .LP
21 .nf
22 \fB/sbin/soconfig\fR \fIfamily\fR \fItype\fR \fIprotocol\fR [\fImodule\fR | \fIpath\fR]
23 .fi
24
25 .SH DESCRIPTION
26 .sp
27 .LP
28 The \fBsoconfig\fR utility configures the transport provider driver for use
29 with sockets. It specifies how the family, type, and protocol parameters in the
30 \fBsocket\fR(3SOCKET) call are mapped to the name of a transport provider such
31 as \fB/dev/tcp\fR. This utility can be used to add an additional mapping or
32 remove a previous mapping.
33 .sp
34 .LP
35 The \fBinit\fR(1M) utility uses \fBsoconfig\fR with the \fBsock2path.d\fR(4)
36 directory during the booting sequence.
37 .SH OPTIONS
38 .sp
39 .LP
40 The following options are supported:
41 .sp
42 .ne 2
43 .na
44 \fB\fB-d\fR \fIdir\fR\fR
45 .ad
46 .RS 11n
47 Set up the soconfig configuration for each driver
48 according to the information stored in the
49 files in dir.
50 .RE
51
52 .sp
53 .ne 2
54 .na
55 \fB\fB-f\fR \fIfile\fR\fR
56 .ad
57 .RS 11n
58 Set up the \fBsoconfig\fR configuration for each driver according to the
59 information stored in \fBfile\fR. A \fBsoconfig\fR file consists of lines of at
60 least the first three fields listed below, separated by spaces:
61 .sp
62 \fIfamily type protocol [module | path]\fR
63 .sp
64 These fields are described in the \fBOPERANDS\fR section below.
65 .sp
66 An example of \fBfile\fR can be found in the \fBEXAMPLES\fR section below.
67 .RE
68
69 .SH OPERANDS
70 .sp
71 .LP
72 The following operands are supported:
73 .sp
74 .ne 2
75 .na
76 \fB\fIfamily\fR\fR
77 .ad
78 .RS 17n
79 The protocol family as listed in the \fB/usr/include/sys/socket.h\fR file,
80 expressed as an integer.
81 .RE
82
155 .nf
156 # Family Type Protocol Module | Path
157 2 2 0 tcp
158 2 2 6 tcp
159
160 2 1 0 udp
161 2 1 17 udp
162
163 1 2 0 /dev/ticotsord
164 1 1 0 /dev/ticlts
165
166 2 4 0 icmp
167 .fi
168 .in -2
169 .sp
170
171 .SH FILES
172 .sp
173 .ne 2
174 .na
175 \fB\fB/etc/sock2path.d\fR\fR
176 .ad
177 .RS 18n
178 Directory containing files with mappings from
179 sockets to transport providers.
180 .RE
181
182 .SH SEE ALSO
183 .sp
184 .LP
185 \fBinit\fR(1M), \fBsock2path.d\fR(4), \fBattributes\fR(5)
186 .sp
187 .LP
188 \fINetwork Interface Guide\fR
|