On 2026-09-08 22:33:11 +0100, Joe wrote: > On Tue, 8 Sep 2026 22:22:18 +0200 > Nicolas George <[email protected]> wrote: > > > Joe (HE12026-09-08): > > > If both are apparently available, yes. But if one is disabled in the > > > kernel, it doesn't make much sense to try it at all, does it? > > > > And how do you think applications know that IPv6 is disabled in the > > kernel? Do you suggest somebody who disables IPv6 in the kernel should > > rebuild all applications with `./configure --disable-ipv6`? > > > > Applications know that IPv6 is disabled by trying it. > > cat /proc/sys/net/ipv6/conf/*/disable_ipv6 > > or individually per interface.
A socket() call is actually easier: if IPv6 is disabled, it fails. -- Vincent Lefèvre <[email protected]> - Web: <https://www.vinc17.net/> 100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/> Work: CR INRIA - computer arithmetic / Pascaline project (LIP, ENS-Lyon)

