NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: lib/52382: Sockets that only listen on inet6 domain



Robert Elz a écrit :
The following reply was made to PR lib/52382; it has been noted by GNATS.

From: Robert Elz <kre%munnari.OZ.AU@localhost>
To: Joerg Sonnenberger <joerg%bec.de@localhost>
Cc: gnats-bugs%NetBSD.org@localhost, lib-bug-people%netbsd.org@localhost, gnats-admin%netbsd.org@localhost,
        netbsd-bugs%netbsd.org@localhost, joel.bertrand%systella.fr@localhost
Subject: Re: lib/52382: Sockets that only listen on inet6 domain
Date: Mon, 10 Jul 2017 00:36:40 +0700

     Date:        Sun, 9 Jul 2017 19:10:35 +0200
     From:        Joerg Sonnenberger <joerg=40bec.de>
     Message-ID:  <20170709171035.GA1214=40britannica.bec.de>

   =7C A program that really wants to use the same socket for both *must*
   =7C set ipv6only to 0 via the appropiate setsockopt call.

 Either that or:
 	sysctl -w net.inet6.ip6.v6only=3D0

 which it is possible that Joel has in NetBSD 7 but not in NetBSD 6

 But Joerg is correct, this has never been the NetBSD default.

 kre


I have net.inet6.ip6.v6only = 1 in my system. But I'm sure that I have not manually set this parameter.

That being said, both squid ans mysql worked fine with -6, -7 and don't with -8 with default configuration.

I don't know if with -6 and -7 these daemons listen on both IPv4 and IPv6, but they listen at least on IPv4.

Regards,

JB



Home | Main Index | Thread Index | Old Index