SOCONFIG(8) | Maintenance Commands and Procedures | SOCONFIG(8) |
soconfig - configure transport providers for use by sockets
/sbin/soconfig -d dir
/sbin/soconfig -f file
/sbin/soconfig family type protocol [module | path]
/sbin/soconfig -l
The soconfig utility configures the transport provider driver for use with sockets. It specifies how the family, type, and protocol parameters in the socket(3SOCKET) call are mapped to the name of a transport provider such as /dev/tcp. This utility can be used to add an additional mapping or remove a previous mapping.
The init(8) utility uses soconfig with the sock2path.d(5) directory during the booting sequence.
The following options are supported:
-d dir
-f file
family type protocol [module | path]
These fields are described in the OPERANDS section below.
An example of file can be found in the EXAMPLES section below.
-l
The following operands are supported:
family
type
protocol
module | path
Example 1 Using soconfig
The following example sets up a module for family AF_INET and type SOCK_STREAM:
example# soconfig 2 2 0 tcp
The following example sets up /dev/tcp for family AF_INET and type SOCK_STREAM:
example# soconfig 2 2 0 /dev/tcp
The following is a sample file used with the -f option. Comment lines begin with a hash mark (#):
# 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
/etc/sock2path.d
sock2path.d(5), attributes(7), init(8)
Network Interface Guide
May 21, 2015 | OmniOS |