PROTOCOLS(5) Series 300 Only PROTOCOLS(5)
NAME
protocols - protocol name data base
HP-UX COMPATIBILITY
Level: HP-UX/NON-STANDARD
Origin: UCB
Remarks: Implemented on the Series 300 only.
DESCRIPTION
This file associates protocol numbers with official protocol
names and aliases. That allows the user to refer to a
protocol by a mneumonic name instead of a number. For each
protocol a single line should be present with the following
information:
<official protocol name> <protocol number> <aliases>
Aliases are other names under which the protocol is also
known. For example:
tcp 6 TCP
So, in this example, the library call getprotobyname can be
invoked as:
p = getprotobyname("TCP");
instead of
p = getprotobyname("tcp");
Both will produce the same results.
A line cannot start with a space. Items are separated by
any number of blanks and/or tab characters. A `#' indicates
the beginning of a comment; characters up to the end of the
line are not interpreted by routines which search the file.
Protocol names may contain any printable character other
than a white space, newline, or comment character. Trailing
blanks or tabs are allowed at the end of a line.
EXAMPLES
tcp 6 TCP # transmission control protocol
udp 17 UDP # user datagram protocol
SEE ALSO
getprotoent(3N).
Hewlett-Packard - 1 - (printed 7/16/86)