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



The following reply was made to PR lib/52382; it has been noted by GNATS.

From: Christos Zoulas <christos%zoulas.com@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: 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: Sun, 9 Jul 2017 18:55:07 -0400

 you need separate socket file descriptors to listen to v4 and v6 and the app=
 lication is responsible for setting those up. if you ktrace or turn on debug=
 ging perhaps you'll see what's wrong.
 
 christos
 
 > On Jul 9, 2017, at 6:15 PM, BERTRAND Jo=C3=ABl <joel.bertrand%systella.fr@localhost>=
  wrote:
 >=20
 > The following reply was made to PR lib/52382; it has been noted by GNATS.
 >=20
 > From: =3D?UTF-8?Q?BERTRAND_Jo=3Dc3=3Dabl?=3D <joel.bertrand%systella.fr@localhost>
 > To: gnats-bugs%NetBSD.org@localhost, lib-bug-people%netbsd.org@localhost, gnats-admin@netbsd.o=
 rg,
 >        netbsd-bugs%netbsd.org@localhost
 > Cc:=20
 > Subject: Re: lib/52382: Sockets that only listen on inet6 domain
 > Date: Mon, 10 Jul 2017 00:12:09 +0200
 >=20
 > Robert Elz a =C3=A9crit :
 >> The following reply was made to PR lib/52382; it has been noted by GNATS.=
 
 >>=20
 >> 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,
 >>        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
 >>=20
 >>     Date:        Sun, 9 Jul 2017 19:10:35 +0200
 >>     From:        Joerg Sonnenberger <joerg=3D40bec.de>
 >>     Message-ID:  <20170709171035.GA1214=3D40britannica.bec.de>
 >>=20
 >>   =3D7C A program that really wants to use the same socket for both *must=
 *
 >>   =3D7C set ipv6only to 0 via the appropiate setsockopt call.
 >>=20
 >> Either that or:
 >>    sysctl -w net.inet6.ip6.v6only=3D3D0
 >>=20
 >> which it is possible that Joel has in NetBSD 7 but not in NetBSD 6
 >>=20
 >> But Joerg is correct, this has never been the NetBSD default.
 >>=20
 >> kre
 >>=20
 >=20
 > I have net.inet6.ip6.v6only =3D 1 in my system. But I'm sure that I have=20=
 
 > not manually set this parameter.
 >=20
 > That being said, both squid ans mysql worked fine with -6, -7 and don't=20=
 
 > with -8 with default configuration.
 >=20
 > I don't know if with -6 and -7 these daemons listen on both IPv4 and=20
 > IPv6, but they listen at least on IPv4.
 >=20
 > Regards,
 >=20
 > JB
 >=20
 


Home | Main Index | Thread Index | Old Index