Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 19 Dec 2025 14:02:00 +0100
From:      =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= <des@FreeBSD.org>
To:        Ed Maste <emaste@FreeBSD.org>
Cc:        src-committers@FreeBSD.org,  dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   Re: git: cd240957d7ba - main - netinet: Disallow connections to INADDR_ANY
Message-ID:  <86ecoq7hh3.fsf@ltc.des.dev>
In-Reply-To: <202505241814.54OIEgPR025138@gitrepo.freebsd.org> (Ed Maste's message of "Sat, 24 May 2025 18:14:42 GMT")
References:  <202505241814.54OIEgPR025138@gitrepo.freebsd.org>

index | next in thread | previous in thread | raw e-mail

Ed Maste <emaste@FreeBSD.org> writes:
> commit cd240957d7ba43d819e9d59c6f6517fe915102c7
> Author:     Ed Maste <emaste@FreeBSD.org>
> AuthorDate: 2024-11-25 14:07:11 +0000
> Commit:     Ed Maste <emaste@FreeBSD.org>
> CommitDate: 2025-05-24 18:13:09 +0000
>
>     netinet: Disallow connections to INADDR_ANY
>     
>     Previously connect() or sendto() to INADDR_ANY reached some socket bound
>     to some host interface address. Although this was intentional it was an
>     artifact of a different era, and is not desirable now.
>     
>     In 417b35a97b76 markj added support to disallow connect() to INADDR_ANY.
>     Take the next logical step and disable it by default.

It is still possible to connect to IN6ADDR_ANY.  IMO we should either
allow both or disallow both.

DES
-- 
Dag-Erling Smørgrav - des@FreeBSD.org


help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?86ecoq7hh3.fsf>