diff options
| author | Gleb Smirnoff <glebius@FreeBSD.org> | 2025-12-11 02:03:35 +0000 |
|---|---|---|
| committer | Gleb Smirnoff <glebius@FreeBSD.org> | 2025-12-11 02:03:35 +0000 |
| commit | e967a2a03677f67d46b458d233a6e93c40d173c9 (patch) | |
| tree | 874d46ae2c82e5458e5bb0b628ef96f2f70f3484 | |
| parent | 567a097c8ab60d9fcd68a87c3c5ad605fe8715cc (diff) | |
sockets: remove compat shim for divert(4)
All known software in ports had been addressed three years ago and the
shim stays in stable/14 and stable/15 for another couple years with its
printf(), so all ourliers are expected to conform before 16.0-RELEASE.
See 8624f4347e8133911b0554e816f6bedb56dc5fb3 for details.
| -rw-r--r-- | sys/kern/uipc_socket.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/sys/kern/uipc_socket.c b/sys/kern/uipc_socket.c index 9eba3ad2e082..8ed5dcc9336a 100644 --- a/sys/kern/uipc_socket.c +++ b/sys/kern/uipc_socket.c @@ -913,17 +913,6 @@ socreate(int dom, struct socket **aso, int type, int proto, struct socket *so; int error; - /* - * XXX: divert(4) historically abused PF_INET. Keep this compatibility - * shim until all applications have been updated. - */ - if (__predict_false(dom == PF_INET && type == SOCK_RAW && - proto == IPPROTO_DIVERT)) { - dom = PF_DIVERT; - printf("%s uses obsolete way to create divert(4) socket\n", - td->td_proc->p_comm); - } - prp = pffindproto(dom, type, proto); if (prp == NULL) { /* No support for domain. */ |
