protocols(5)
๐ protocols โ bestie edition ๐
okay so this is the protocols manual page from section 5 (File Formats Manual), and it's literally just about a file. but like, an iconic file. let me tell you everything, no cap. ๐ฆ
โจ NAME โจ
protocols โ the protocols definition file. that's it, that's the vibe. ๐
๐ธ DESCRIPTION ๐ธ
so this file is a plain ASCII file (yes bestie, plain ASCII, we love a low-maintenance queen), and what it does is describe all the various DARPA internet protocols that are available from the TCP/IP subsystem. ๐ซถ
bestie, please actually consult this file instead of doing the goblin move of using the numbers in the ARPA include files, or โ and I cannot stress this enough โ even worse, just guessing them. ๐ญ the audacity. these numbers literally show up in the protocol field of any IP header, so guessing is not giving what you think it's giving.
๐จ IMPORTANT: keep this file untouched!! like, do not edit it. changes would result in incorrect IP packages. no seriously. protocol numbers and names are specified by the IANA (Internet Assigned Numbers Authority), so that's their job, not ours. periodt. ๐
each line is of the following format:
protocol number aliases ...
the fields are delimited by spaces or tabs. empty lines are ignored. and if a line contains a hash mark (#), then the hash mark and the part of the line following it are ignored โ it's a comment, it said what it said. ๐
the field descriptions, let's go:
protocolโ the native name for the protocol. for exampleip,tcp, orudp. slay.numberโ the official number for this protocol as it will appear within the IP header. the real one. the official one. โจaliasesโ optional aliases for the protocol. cute little nicknames, if you will. ๐
also lowkey fun fact: this file might be distributed over a network using a network-wide naming service like Yellow Pages/NIS or BIND/Hesiod. ๐
๐ FILES ๐
/etc/protocolsโ the protocols definition file itself. the main character. ๐
๐ SEE ALSO ๐
getprotoent(3)โ go read this one too, bestie ๐ซถhttp://www.iana.org/assignments/protocol-numbersโ the official IANA list, iykyk ๐
and that's the whole page, we ate and left no crumbs ๐. this lovely little file lives on โจ Linux man-pages 6.20 โจ, dated โจ 2026-02-08 โจ. mwah ๐๐
๐ฆ where this page comes from
- arch rolling: man-pages 6.20-1 ยท BSD-2-Clause AND BSD-3-Clause AND BSD-4.3TAHOE AND BSD-4-Clause-UC AND GPL-1.0-or-later AND GPL-2.0-only AND GPL-2.0-or-later AND GPL-3.0-or-later AND LGPL-3.0-linking-exception AND LGPL-3.0-or-later AND LicenseRef-Public-Domain AND LicenseRef-UltraPermissive AND Linux-man-pages-1-para AND Linux-man-pages-copyleft AND Linux-man-pages-copyleft-2-para AND Linux-man-pages-copyleft-var AND MIT AND Spencer-94
- nixpkgs unstable: man-pages 6.20
- ๐ the page's license: GPL-2.0-or-later
- Copyright 1995, Martin Schulze <joey@debian.org>
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms