SOCKCF(SFF) UNIX System V
Name
/etc/sockcf - socket configuration file
Description
/etc/sockcf contains information about the protocols that
are to be accessed via the socket interface. This file is
read by ldsocket(ADMN) at boot time.
/etc/sockcf contains one line per protocol which specifies
the address family, protocol type, protocol number, flags,
and STREAMS device for the protocol. The flags describe the
behavior of the protocol.
The format of a protocol line is:
Family Type Protocol Flags Device
Family can be an address family name or an integer. The
following address family names are recognized:
Name Value Description
UNSPEC 0 Unspecified
UNIX 1 Local to host (pipes, portals)
INET 2 Internetwork: TCP, UDP, etc.
IMPLINK 3 Arpanet IMP addresses
PUP 4 PUP protocols, e.g. BSP
CHAOS 5 MIT CHAOS protocols
NS 6 XEROX NS protocols
NBS 7 NBS protocols
ECMA 8 European Computer Manufacturers
DATAKIT 9 Datakit protocols
CCITT 10 CCITT protocols: X.25, etc.
SNA 11 IBM SNA
DECnet 12 DECnet
DLI 13 Direct Data Link Interface
LAT 14 LAT
HYLINK 15 NSC Hyperchannel
APPLETALK 16 Apple Talk
Type can be a type name or an integer. The following type
names are recognized:
Name Value Description
STREAM 1 Stream socket
DGRAM 2 Datagram socket
RAW 3 Raw protocol interface
RDM 4 Reliably delivered message
SEQPACKET 5 Sequenced packet stream
Protocol is the protocol number associated with the
protocol.
Flags is a string of flag characters describing the
protocol. The recognized flag characters are:
M This protocol supports atomic messages only.
C Connections are required.
A Messages contain addresses.
R Rights can be passed with this protocol.
P The protocol number must be bound to the stream.
This is required to support raw IP sockets.
/etc/sockcf may contain comments, which are delimited by `#'
and newline.
The standard /etc/sockcf contains the following entries:
INET STREAM 6 C /dev/inet/tcp
INET DGRAM 17 AM /dev/inet/udp
INET RAW 1 AM /dev/inet/icmp
INET RAW 255 AMP /dev/inet/rip
Because of the way the kernel builds the protocol switch
table, the last protocol specified for a type becomes the
default. For this reason, it is important to ensure that the
default protocol is the last one listed.
Files
/etc/sockcf
See Also
ldsocket(ADMN), intro(ADMP), socket(SSC).
(printed 8/17/89) SOCKCF(SFF)