1protocols(4)                     File Formats                     protocols(4)
2
3
4

NAME

6       protocols - protocol name database
7

SYNOPSIS

9       /etc/inet/protocols
10
11
12       /etc/protocols
13
14

DESCRIPTION

16       The  protocols  file   is  a  local source of information regarding the
17       known protocols used in the DARPA Internet. The protocols file  can  be
18       used in conjunction with or instead of other protocols sources, includ‐
19       ing the NIS maps ``protcols.byname'' and "protocols.bynumber"  and  the
20       NIS+ table ``protocols''. Programs use the getprotobyname(3SOCKET) rou‐
21       tine to access this information.
22
23
24       The protocols file has one line for each protocol.  The  line  has  the
25       following format:
26
27         official-protocol-name protocol-number aliases
28
29
30
31       Items  are  separated  by any number of blanks and/or TAB characters. A
32       `#' indicates the beginning of a comment; characters up to the  end  of
33       the  line are not interpreted by routines which search the file. Proto‐
34       col names may contain any printable character other than a field delim‐
35       iter, NEWLINE, or comment character.
36

EXAMPLES

38       Example 1 A Sample Database
39
40
41       The following is a sample database:
42
43
44         #
45         # Internet (IP) protocols
46         #
47         ip          0   IP          # internet protocol, pseudo protocol number
48         icmp        1   ICMP        # internet control message protocol
49         ggp         3   GGP         # gateway-gateway protocol
50         tcp         6   TCP         # transmission control protocol
51         egp         8   EGP         # exterior gateway protocol
52         pup         12  PUP         # PARC universal packet protocol
53         udp         17  UDP         # user datagram protocol
54
55         #
56         # Internet (IPv6) extension headers
57         #
58         hopopt      0   HOPOPT      # Hop-by-hop options for IPv6
59         ipv6        41  IPv6        # IPv6 in IP encapsulation
60         ipv6-route  43  IPv6-Route  # Routing header for IPv6
61         ipv6-frag   44  IPv6-Frag   # Fragment header for IPv6
62         esp         50  ESP         # Encap Security Payload for IPv6
63         ah          51  AH          # Authentication Header for IPv6
64         ipv6-icmp   58  IPv6-ICMP   # IPv6 internet control message protocol
65         ipv6-nonxt  59  IPv6-NoNxt  # No next header extension header for IPv6
66         ipv6-opts   60  IPv6-Opts   # Destination Options for IPv6
67
68
69

FILES

71       /etc/nsswitch.conf    configuration file for name-service switch
72
73

SEE ALSO

75       getprotobyname(3SOCKET), nsswitch.conf(4)
76

NOTES

78       /etc/inet/protocols  is  the  official SVR4 name of the protocols file.
79       The symbolic link /etc/protocols exists for BSD compatibility.
80
81
82
83SunOS 5.11                        13 Jun 2002                     protocols(4)
Impressum