Re: git: 627e126dbb07 - main - netinet6: Disallow connections to IN6ADDR_ANY
Date: Fri, 30 Jan 2026 21:25:35 UTC
On Fri, 30 Jan 2026, Gleb Smirnoff wrote: > On Thu, Jan 29, 2026 at 02:09:08PM +0000, Ed Maste wrote: > E> The branch main has been updated by emaste: > E> > E> URL: https://cgit.FreeBSD.org/src/commit/?id=627e126dbb07b167b028380ef61bb45f10493938 > E> > E> commit 627e126dbb07b167b028380ef61bb45f10493938 > E> Author: Ed Maste <emaste@FreeBSD.org> > E> AuthorDate: 2025-12-19 14:15:35 +0000 > E> Commit: Ed Maste <emaste@FreeBSD.org> > E> CommitDate: 2026-01-29 14:08:45 +0000 > E> > E> netinet6: Disallow connections to IN6ADDR_ANY > E> > E> Previously connect() or sendto() to INADDR_ANY or IN6ADDR_ANY reached > E> some socket bound to some host interface address. Although this was > E> intentional it was an artifact of a different era, and is not desirable > E> now. > E> > E> In 417b35a97b76 markj added support to disallow connect() to INADDR_ANY > E> and IN6ADDR_ANY. Connections to INADDR_ANY were disabled by default in > E> cd240957d7ba. Follow suit with IN6ADDR_ANY. > E> > E> Reviewed by: glebius, markj, zlei > E> Sponsored by: The FreeBSD Foundation > E> Differential Revision: https://reviews.freebsd.org/D54306 > > Now the test socket_afinet:socket_afinet_bind_connected_port needs either be > adjusted or disabled. > > # kyua debug -k /usr/tests/sys/netinet/Kyuafile socket_afinet:socket_afinet_bind_connected_port > socket_afinet:socket_afinet_bind_connected_port -> failed: /usr/src/FreeBSD/tests/sys/netinet/socket_afinet.c:556: connect failed: Network is unreachable Yes looks like it. I am just not sure why I am specifically added to Cc: for this one. But it answers the question I left on the follow-up change at: https://reviews.freebsd.org/D54942 /bz -- Bjoern A. Zeeb r15:7