TCP/IP Configuration and Management Manual
Configuring the NonStop TCP/IP Subsystem
TCP/IP Configuration and Management Manual—427132-004
3-39
Configuration Files for the Internet Environment
PROTOCOL File
The PROTOCOL file contains the names of the protocols currently supported by the
NonStop TCP/IP software as well as some not currently supported. Applications use
the PROTOCOL file to get protocol names and Internet protocol numbers. When an
application calls the functions getprotobyname or getprotobynumber, the PROTOCOL
file provides this information. You do not need to alter this file.
Each entry has the following format:
protocol_name protocol_number PROTOCOL_NAME
where protocol_name is the protocol name in lowercase, protocol_number is the well-
known Internet protocol number and PROTOCOL_NAME is the protocol name in
uppercase. (Because the functions getprotobyname and getprotobynumber are case
sensitive, both uppercase and lowercase representations of the protocol names are
included in the PROTOCOL file.)
Example 3-18 shows the PROTOCOL file (precede comment lines with a pound sign
(#)):
SERVICES File
The SERVICES file contains the Internet port level services that are available with the
NonStop TCP/IP software. Applications use the SERVICES file to get the service port
numbers and service names. When the application calls the getservbyname or
getservbynumber function, TCP/IP uses the SERVICES file to provide that information.
You do not need to alter this file.
Example 3-19 shows the SERVICES file:
Example 3-18. PROTOCOL File
# @(#)protocols 1.1 NonStop
#
# Internet (IP) protocols
#
ip 0 IP # internet protocol, pseudo protocol
number
icmp 1 ICMP # internet control message protocol
ggp 3 GGP # gateway-gateway protocol
tcp 6 TCP # transmission control protocol
pup 12 PUP # PARC universal packet protocol
udp 17 UDP # user datagram protocol