Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 11 Aug 2020 05:43:40 +0000
From:      bugzilla-noreply@freebsd.org
To:        net@FreeBSD.org
Subject:   [Bug 248579] accept(2): IPv4 connections fail (IPv6 connections succeed) with dual IPv4/IPv6 TCP servers
Message-ID:  <bug-248579-7501-zS2hixdCbq@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-248579-7501@https.bugs.freebsd.org/bugzilla/>
References:  <bug-248579-7501@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D248579

Michael Tuexen <tuexen@freebsd.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |tuexen@freebsd.org

--- Comment #3 from Michael Tuexen <tuexen@freebsd.org> ---
(In reply to rec from comment #1)
Instead of changing a system wide setting you can also use the
IPPROTO_IPV6-level socket option IPV6_V6ONLY to allow handling IPv4 traffic
using the IPv6 socket by calling in make_listen():

int no =3D 0;
setsockopt(s, IPPROTO_IPV6, IPV6_V6ONLY, no, sizeof(int));

--=20
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-248579-7501-zS2hixdCbq>