Bug 295739 - /etc/protocols missing a few protocols
Summary: /etc/protocols missing a few protocols
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: conf (show other bugs)
Version: Unspecified
Hardware: Any Any
: --- Affects Only Me
Assignee: Yoshihiro Takahashi
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2026-05-31 06:12 UTC by Chris Petrik
Modified: 2026-06-21 10:53 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Petrik 2026-05-31 06:12:33 UTC
if you compare /etc/protocols to the one found at:
https://www.iana.org/assignments/protocol-numbers/protocol-numbers.txt

some have been deprecated such as 122 (SM)

the +#      138-254                 # Unassigned
is invalid as according to IANA 138-254 are used:



 138   manet              MANET Protocols                            [RFC5498]
     139   HIP                Host Identity Protocol            Y        [RFC7401]
     140   Shim6              Shim6 Protocol                    Y        [RFC5533]
     141   WESP               Wrapped Encapsulating                      [RFC5840]
                              Security Payload
     142   ROHC               Robust Header Compression                  [RFC5858]
     143   Ethernet           Ethernet                                   [RFC8986]
     144   AGGFRAG            AGGFRAG encapsulation                      [RFC9347]
                              payload for ESP
     145   NSH                Network Service Header            N        [RFC9491]
     146   Homa               Homa                              N        [HomaModule][John_Ousterhout]
     147   BIT-EMU            Bit-stream Emulation              Y        [RFC9801]
   148-252                    Unassigned                                 [Internet_Assigned_Numbers_Authority]
     253                      Use for experimentation and       Y        [RFC3692]
                              testing
     254                      Use for experimentation and       Y        [RFC3692]
                              testing
     255   Reserved                                                      [Internet_Assigned_Numbers_Authority]

So i think this file should be updated to suite but I do not know the syntax to be used?

that should be changed to 148-252 Unassigned or Not used.
Comment 1 Yoshihiro Takahashi freebsd_committer freebsd_triage 2026-06-03 16:37:24 UTC
I'll take.
Comment 2 Yoshihiro Takahashi freebsd_committer freebsd_triage 2026-06-04 16:13:35 UTC
See https://reviews.freebsd.org/D57445
Comment 3 Chris Petrik 2026-06-04 16:45:18 UTC
Do I have to create an account ?
Comment 4 Yoshihiro Takahashi freebsd_committer freebsd_triage 2026-06-05 02:56:16 UTC
No, I set the differential as public, so you don't have to create an account.
Comment 5 Chris Petrik 2026-06-05 03:38:28 UTC
Login to comment,

services should be updated as well im sure a script that fetchs the file from IANA and does some sed magic would prevent this from getting back scattered.
Comment 6 Yoshihiro Takahashi freebsd_committer freebsd_triage 2026-06-05 13:11:50 UTC
Yes, but for now I'll just update /etc/protocols.
Comment 7 commit-hook freebsd_committer freebsd_triage 2026-06-05 13:15:55 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/src/commit/?id=e3fa020202d8e040242016bda275dde83c058549

commit e3fa020202d8e040242016bda275dde83c058549
Author:     Yoshihiro Takahashi <nyan@FreeBSD.org>
AuthorDate: 2026-06-05 13:14:06 +0000
Commit:     Yoshihiro Takahashi <nyan@FreeBSD.org>
CommitDate: 2026-06-05 13:14:06 +0000

    protocols: Update with IANA list

    - Update /etc/protocols with IANA list updated 2026-03-09.
    - Document that 240 (pfsync) is not assigned by IANA.
    - Document deprecated protocols.

    PR:             295739
    Reviewed by:    des
    MFC after:      1 week
    Differential Revision:  https://reviews.freebsd.org/D57445

 lib/libc/net/protocols | 17 +++++++++++------
 1 file changed, 11 insertions(+), 6 deletions(-)
Comment 8 commit-hook freebsd_committer freebsd_triage 2026-06-21 10:50:41 UTC
A commit in branch stable/15 references this bug:

URL: https://cgit.FreeBSD.org/src/commit/?id=d661121660a0862ef8cfe2949b0177f15ca77777

commit d661121660a0862ef8cfe2949b0177f15ca77777
Author:     Yoshihiro Takahashi <nyan@FreeBSD.org>
AuthorDate: 2026-06-05 13:14:06 +0000
Commit:     Yoshihiro Takahashi <nyan@FreeBSD.org>
CommitDate: 2026-06-21 10:49:21 +0000

    protocols: Update with IANA list

    - Update /etc/protocols with IANA list updated 2026-03-09.
    - Document that 240 (pfsync) is not assigned by IANA.
    - Document deprecated protocols.

    PR:             295739
    Reviewed by:    des
    MFC after:      1 week
    Differential Revision:  https://reviews.freebsd.org/D57445

    (cherry picked from commit e3fa020202d8e040242016bda275dde83c058549)

 lib/libc/net/protocols | 17 +++++++++++------
 1 file changed, 11 insertions(+), 6 deletions(-)
Comment 9 commit-hook freebsd_committer freebsd_triage 2026-06-21 10:51:42 UTC
A commit in branch stable/14 references this bug:

URL: https://cgit.FreeBSD.org/src/commit/?id=9f9f0d3d9e1c9c9416b12625d357dd6f80d5f9be

commit 9f9f0d3d9e1c9c9416b12625d357dd6f80d5f9be
Author:     Yoshihiro Takahashi <nyan@FreeBSD.org>
AuthorDate: 2026-06-05 13:14:06 +0000
Commit:     Yoshihiro Takahashi <nyan@FreeBSD.org>
CommitDate: 2026-06-21 10:51:10 +0000

    protocols: Update with IANA list

    - Update /etc/protocols with IANA list updated 2026-03-09.
    - Document that 240 (pfsync) is not assigned by IANA.
    - Document deprecated protocols.

    PR:             295739
    Reviewed by:    des
    MFC after:      1 week
    Differential Revision:  https://reviews.freebsd.org/D57445

    (cherry picked from commit e3fa020202d8e040242016bda275dde83c058549)

 lib/libc/net/protocols | 17 +++++++++++------
 1 file changed, 11 insertions(+), 6 deletions(-)