summaryrefslogtreecommitdiff
path: root/usr/src/man/man1m/soconfig.1m
blob: 6166bba6276729f9469668491a6068eca12375d0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
'\" te
.\"  Copyright (c) 2008, Sun Microsystems, Inc.  All Rights Reserved
.\"  Copyright 2015 Nexenta Systems, Inc. All rights reserved.
.\" 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.
.\" 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.
.\" 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]
.TH SOCONFIG 1M "May 21, 2015"
.SH NAME
soconfig \- configure transport providers for use by sockets
.SH SYNOPSIS
.LP
.nf
\fB/sbin/soconfig\fR \fB-d\fR \fIdir\fR
.fi

.LP
.nf
\fB/sbin/soconfig\fR \fB-f\fR \fIfile\fR
.fi

.LP
.nf
\fB/sbin/soconfig\fR \fIfamily\fR \fItype\fR \fIprotocol\fR [\fImodule\fR | \fIpath\fR]
.fi

.LP
.nf
\fB/sbin/soconfig\fR \fB-l\fR
.fi

.SH DESCRIPTION
.sp
.LP
The \fBsoconfig\fR utility configures the transport provider driver for use
with sockets. It specifies how the family, type, and protocol parameters in the
\fBsocket\fR(3SOCKET) call are mapped to the name of a transport provider such
as \fB/dev/tcp\fR. This utility can be used to add an additional mapping or
remove a previous mapping.
.sp
.LP
The \fBinit\fR(1M) utility uses \fBsoconfig\fR with the \fBsock2path.d\fR(4)
directory during the booting sequence.
.SH OPTIONS
.sp
.LP
The following options are supported:
.sp
.ne 2
.na
\fB\fB-d\fR \fIdir\fR\fR
.ad
.RS 11n
Set up the \fBsoconfig\fR configuration for each driver
according  to  the  information stored in the
files in \fIdir\fR.
.RE

.sp
.ne 2
.na
\fB\fB-f\fR \fIfile\fR\fR
.ad
.RS 11n
Set up the \fBsoconfig\fR configuration for each driver according to the
information stored in \fIfile\fR. A \fBsoconfig\fR file consists of lines of at
least the first three fields listed below, separated by spaces:
.sp
\fIfamily  type  protocol  [module | path]\fR
.sp
These fields are described in the \fBOPERANDS\fR section below.
.sp
An example of \fIfile\fR can be found in the \fBEXAMPLES\fR section below.
.RE

.sp
.ne 2
.na
\fB\fB-l\fR
.ad
.RS 11n
Print the in-kernel socket configuration table.
.RE

.SH OPERANDS
.sp
.LP
The following operands are supported:
.sp
.ne 2
.na
\fB\fIfamily\fR\fR
.ad
.RS 17n
The protocol family as listed in the \fB/usr/include/sys/socket.h\fR file,
expressed as an integer.
.RE

.sp
.ne 2
.na
\fB\fItype\fR\fR
.ad
.RS 17n
The socket type as listed in the \fB/usr/include/sys/socket.h\fR file,
expressed as an integer.
.RE

.sp
.ne 2
.na
\fB\fIprotocol\fR\fR
.ad
.RS 17n
The protocol number as specified in the family-specific \fBinclude\fR file,
expressed as an integer. For example, for \fBAF_INET\fR this number is
specified in \fB/usr/include/netinet/in.h\fR. An unspecified protocol number is
denoted with the value zero.
.RE

.sp
.ne 2
.na
\fB\fImodule\fR | \fIpath\fR\fR
.ad
.RS 17n
The module name or path name of a device that corresponds to the transport
provider, such as \fBtcp\fR or \fB/dev/tcp\fR. Modules must reside in
\fBkernel/socketmod\fR. A device name must begin with \fB/dev\fR. If this
parameter is specified, the configuration will be added for the specified
family, type, and protocol. If this parameter is not specified, the
configuration will be removed.
.RE

.SH EXAMPLES
.LP
\fBExample 1 \fRUsing \fBsoconfig\fR
.sp
.LP
The following example sets up a module for family \fBAF_INET\fR and type
\fBSOCK_STREAM\fR:

.sp
.in +2
.nf
example# \fBsoconfig 2 2 0 tcp\fR
.fi
.in -2
.sp

.sp
.LP
The following example sets up \fB/dev/tcp\fR for family \fBAF_INET\fR and type
\fBSOCK_STREAM\fR:

.sp
.in +2
.nf
example# \fBsoconfig 2 2 0 /dev/tcp\fR
.fi
.in -2
.sp

.sp
.LP
The following is a sample file used with the \fB-f\fR option. Comment lines
begin with a hash mark (\fB#\fR):

.sp
.in +2
.nf
#   Family  Type  Protocol   Module | Path
      2       2       0          tcp
      2       2       6          tcp

      2       1       0          udp
      2       1       17         udp

      1       2       0          /dev/ticotsord
      1       1       0          /dev/ticlts

      2       4       0          icmp
.fi
.in -2
.sp

.SH FILES
.sp
.ne 2
.na
\fB\fB/etc/sock2path.d\fR\fR
.ad
.RS 18n
Directory containing files with mappings from
sockets  to transport providers.
.RE

.SH SEE ALSO
.sp
.LP
\fBinit\fR(1M), \fBsock2path.d\fR(4), \fBattributes\fR(5)
.sp
.LP
\fINetwork Interface Guide\fR