Print this page
4770 soconfig(1M) needs an option to print the in-kernel socket configuration table
   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


  49 files in \fIdir\fR.
  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 \fIfile\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 \fIfile\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 
  83 .sp
  84 .ne 2
  85 .na
  86 \fB\fItype\fR\fR
  87 .ad
  88 .RS 17n


   1 '\" te
   2 .\"  Copyright (c) 2008, Sun Microsystems, Inc.  All Rights Reserved
   3 .\"  Copyright 2015 Nexenta Systems, 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 SOCONFIG 1M "May 21, 2015"
   8 .SH NAME
   9 soconfig \- configure transport providers for use by sockets
  10 .SH SYNOPSIS
  11 .LP
  12 .nf
  13 \fB/sbin/soconfig\fR \fB-d\fR \fIdir\fR
  14 .fi
  15 
  16 .LP
  17 .nf
  18 \fB/sbin/soconfig\fR \fB-f\fR \fIfile\fR
  19 .fi
  20 
  21 .LP
  22 .nf
  23 \fB/sbin/soconfig\fR \fIfamily\fR \fItype\fR \fIprotocol\fR [\fImodule\fR | \fIpath\fR]
  24 .fi
  25 
  26 .LP
  27 .nf
  28 \fB/sbin/soconfig\fR \fB-l\fR
  29 .fi
  30 
  31 .SH DESCRIPTION
  32 .sp
  33 .LP
  34 The \fBsoconfig\fR utility configures the transport provider driver for use
  35 with sockets. It specifies how the family, type, and protocol parameters in the
  36 \fBsocket\fR(3SOCKET) call are mapped to the name of a transport provider such
  37 as \fB/dev/tcp\fR. This utility can be used to add an additional mapping or
  38 remove a previous mapping.
  39 .sp
  40 .LP
  41 The \fBinit\fR(1M) utility uses \fBsoconfig\fR with the \fBsock2path.d\fR(4)
  42 directory during the booting sequence.
  43 .SH OPTIONS
  44 .sp
  45 .LP
  46 The following options are supported:
  47 .sp
  48 .ne 2
  49 .na
  50 \fB\fB-d\fR \fIdir\fR\fR


  55 files in \fIdir\fR.
  56 .RE
  57 
  58 .sp
  59 .ne 2
  60 .na
  61 \fB\fB-f\fR \fIfile\fR\fR
  62 .ad
  63 .RS 11n
  64 Set up the \fBsoconfig\fR configuration for each driver according to the
  65 information stored in \fIfile\fR. A \fBsoconfig\fR file consists of lines of at
  66 least the first three fields listed below, separated by spaces:
  67 .sp
  68 \fIfamily  type  protocol  [module | path]\fR
  69 .sp
  70 These fields are described in the \fBOPERANDS\fR section below.
  71 .sp
  72 An example of \fIfile\fR can be found in the \fBEXAMPLES\fR section below.
  73 .RE
  74 
  75 .sp
  76 .ne 2
  77 .na
  78 \fB\fB-l\fR
  79 .ad
  80 .RS 11n
  81 Print the in-kernel socket configuration table.
  82 .RE
  83 
  84 .SH OPERANDS
  85 .sp
  86 .LP
  87 The following operands are supported:
  88 .sp
  89 .ne 2
  90 .na
  91 \fB\fIfamily\fR\fR
  92 .ad
  93 .RS 17n
  94 The protocol family as listed in the \fB/usr/include/sys/socket.h\fR file,
  95 expressed as an integer.
  96 .RE
  97 
  98 .sp
  99 .ne 2
 100 .na
 101 \fB\fItype\fR\fR
 102 .ad
 103 .RS 17n