'\"macro stdmacro
.if n .pH g4.protocols @(#)protocols	40.4 of 1/24/90
.\" Copyright 1989 AT&T
.\" @(#)protocols.4 1.2 89/07/14 SMI; from UCB 4.2
'\" macro stdmacro
.\" Copyright (c) 1988 Sun Microsystems, Inc. - All Rights Reserved.
.\"
.nr X
.if \nX=0 .ds x} protocols 4 "TCP/IP" "\&"
.if \nX=1 .ds x} protocols 4 "TCP/IP"
.if \nX=2 .ds x} protocols 4 "" "\&"
.if \nX=3 .ds x} protocols "" "" "\&"
.TH \*(x}
.SH NAME
\f4protocols\f1 \- protocol name data base
.SH SYNOPSIS
\f4/etc/protocols\f1
.SH DESCRIPTION
.PP
The
\f4protocols\f1
file contains information regarding
the known protocols used in the
.SM DARPA
Internet.
For each protocol a single line
should be present with the following information:
.IP
.I official-protocol-name	protocol-number	aliases
.PP
Items are separated by any number of blanks and/or
.SM TAB
characters.
A
\f1`\f4#\f1'
indicates the beginning of a comment;
characters up to the end of the line are
not interpreted by routines which search the file.
.PP
Protocol names may contain any printable
character other than a field delimiter,
.SM NEWLINE\s0,
or comment character.
.SH EXAMPLE
.PP
The following is a sample database:
.PP
.nf
.ft 4
.ta +8n +8n +8n +8n
#
# Internet (\s-1IP\s0) 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
.fi
.ft 1
.SH FILES
.PD 0
.TP 20
\f4/etc/protocols\f1
.PD
.SH "SEE ALSO"
\f4getprotoent\fP(3N)
.SH NOTES
A name server should be used instead of a static file.
A binary indexed file format should be available for fast access.
