Print this page
4770 soconfig(1M) needs an option to print the in-kernel socket configuration table
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/man/man1m/soconfig.1m.man.txt
+++ new/usr/src/man/man1m/soconfig.1m.man.txt
1 1 SOCONFIG(1M) Maintenance Commands SOCONFIG(1M)
2 2
3 3
4 4
5 5 NAME
6 6 soconfig - configure transport providers for use by sockets
7 7
↓ open down ↓ |
7 lines elided |
↑ open up ↑ |
8 8 SYNOPSIS
9 9 /sbin/soconfig -d dir
10 10
11 11
12 12 /sbin/soconfig -f file
13 13
14 14
15 15 /sbin/soconfig family type protocol [module | path]
16 16
17 17
18 + /sbin/soconfig -l
19 +
20 +
18 21 DESCRIPTION
19 22 The soconfig utility configures the transport provider driver for use
20 23 with sockets. It specifies how the family, type, and protocol
21 24 parameters in the socket(3SOCKET) call are mapped to the name of a
22 25 transport provider such as /dev/tcp. This utility can be used to add an
23 26 additional mapping or remove a previous mapping.
24 27
25 28
26 29 The init(1M) utility uses soconfig with the sock2path.d(4) directory
27 30 during the booting sequence.
28 31
29 32 OPTIONS
30 33 The following options are supported:
31 34
32 35 -d dir
33 36 Set up the soconfig configuration for each driver according
34 37 to the information stored in the files in dir.
35 38
36 39
37 40 -f file
38 41 Set up the soconfig configuration for each driver according
39 42 to the information stored in file. A soconfig file consists
40 43 of lines of at least the first three fields listed below,
↓ open down ↓ |
13 lines elided |
↑ open up ↑ |
41 44 separated by spaces:
42 45
43 46 family type protocol [module | path]
44 47
45 48 These fields are described in the OPERANDS section below.
46 49
47 50 An example of file can be found in the EXAMPLES section
48 51 below.
49 52
50 53
54 + -l
55 + Print the in-kernel socket configuration table.
56 +
57 +
51 58 OPERANDS
52 59 The following operands are supported:
53 60
54 61 family
55 62 The protocol family as listed in the
56 63 /usr/include/sys/socket.h file, expressed as an
57 64 integer.
58 65
59 66
60 67 type
61 68 The socket type as listed in the
62 69 /usr/include/sys/socket.h file, expressed as an
63 70 integer.
64 71
65 72
66 73 protocol
67 74 The protocol number as specified in the family-specific
68 75 include file, expressed as an integer. For example,
69 76 for AF_INET this number is specified in
70 77 /usr/include/netinet/in.h. An unspecified protocol
71 78 number is denoted with the value zero.
72 79
73 80
74 81 module | path
75 82 The module name or path name of a device that
76 83 corresponds to the transport provider, such as tcp or
77 84 /dev/tcp. Modules must reside in kernel/socketmod. A
78 85 device name must begin with /dev. If this parameter is
79 86 specified, the configuration will be added for the
80 87 specified family, type, and protocol. If this
81 88 parameter is not specified, the configuration will be
82 89 removed.
83 90
84 91
85 92 EXAMPLES
86 93 Example 1 Using soconfig
87 94
88 95
89 96 The following example sets up a module for family AF_INET and type
90 97 SOCK_STREAM:
91 98
92 99
93 100 example# soconfig 2 2 0 tcp
94 101
95 102
96 103
97 104
98 105 The following example sets up /dev/tcp for family AF_INET and type
99 106 SOCK_STREAM:
100 107
101 108
102 109 example# soconfig 2 2 0 /dev/tcp
103 110
104 111
105 112
106 113
107 114 The following is a sample file used with the -f option. Comment lines
108 115 begin with a hash mark (#):
109 116
110 117
111 118 # Family Type Protocol Module | Path
112 119 2 2 0 tcp
113 120 2 2 6 tcp
114 121
115 122 2 1 0 udp
116 123 2 1 17 udp
117 124
118 125 1 2 0 /dev/ticotsord
119 126 1 1 0 /dev/ticlts
120 127
121 128 2 4 0 icmp
122 129
123 130
124 131
125 132 FILES
126 133 /etc/sock2path.d
127 134 Directory containing files with mappings from sockets
128 135 to transport providers.
↓ open down ↓ |
68 lines elided |
↑ open up ↑ |
129 136
130 137
131 138 SEE ALSO
132 139 init(1M), sock2path.d(4), attributes(5)
133 140
134 141
135 142 Network Interface Guide
136 143
137 144
138 145
139 - April 12, 2014 SOCONFIG(1M)
146 + May 21, 2015 SOCONFIG(1M)
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX