The branch main has been updated by glebius:

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

commit 256fa87c9fc31d67c3da27dd1aac0c42db3dcf41
Author:     Gleb Smirnoff <[email protected]>
AuthorDate: 2026-06-08 16:35:07 +0000
Commit:     Gleb Smirnoff <[email protected]>
CommitDate: 2026-06-08 16:35:07 +0000

    netgraph: remove remnants of IPPROTO_DIVERT
    
    Fixes:  8624f4347e8133911b0554e816f6bedb56dc5fb3
---
 share/examples/netgraph/ngctl | 2 +-
 sys/netgraph/ng_ksocket.c     | 1 -
 2 files changed, 1 insertion(+), 2 deletions(-)

diff --git a/share/examples/netgraph/ngctl b/share/examples/netgraph/ngctl
index c879cbea7b0f..7ee572b4d7c0 100644
--- a/share/examples/netgraph/ngctl
+++ b/share/examples/netgraph/ngctl
@@ -36,7 +36,7 @@
     + mkpeer ksocket foo divert/raw/0
 
 # Note that ``foo'' is the hook name on the socket node, which can be
-# anything.  The ``inet/raw/divert'' is the hook name on the ksocket
+# anything.  The ``divert/raw/0'' is the hook name on the ksocket
 # node, which tells it what kind of socket to create.
 
 # Lets give our ksocket node a global name.  How about ``fred'':
diff --git a/sys/netgraph/ng_ksocket.c b/sys/netgraph/ng_ksocket.c
index 74b2e211c0ed..bb5d56eabb86 100644
--- a/sys/netgraph/ng_ksocket.c
+++ b/sys/netgraph/ng_ksocket.c
@@ -165,7 +165,6 @@ static const struct ng_ksocket_alias ng_ksocket_protos[] = {
        { "ah6",        IPPROTO_AH,             PF_INET6        },
        { "swipe6",     IPPROTO_SWIPE,          PF_INET6        },
        { "encap6",     IPPROTO_ENCAP,          PF_INET6        },
-       { "divert6",    IPPROTO_DIVERT,         PF_INET6        },
        { "pim6",       IPPROTO_PIM,            PF_INET6        },
        { NULL,         -1                                      },
 };

Reply via email to