aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGleb Smirnoff <glebius@FreeBSD.org>2026-06-08 16:35:07 +0000
committerGleb Smirnoff <glebius@FreeBSD.org>2026-06-08 16:35:07 +0000
commit256fa87c9fc31d67c3da27dd1aac0c42db3dcf41 (patch)
tree207a3ed42afa5b0bf0b209f69bf69209b20523d2
parenta9519f7821c066c393690603eab33043f3804a0c (diff)
netgraph: remove remnants of IPPROTO_DIVERT
-rw-r--r--share/examples/netgraph/ngctl2
-rw-r--r--sys/netgraph/ng_ksocket.c1
2 files changed, 1 insertions, 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 },
};