From owner-freebsd-emulation@freebsd.org Thu Mar 3 20:13:53 2016 Return-Path: Delivered-To: freebsd-emulation@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 30078A940E6 for ; Thu, 3 Mar 2016 20:13:53 +0000 (UTC) (envelope-from joe@getsomewhere.net) Received: from prak.gameowls.com (prak.gameowls.com [IPv6:2001:19f0:5c00:950b:5400:ff:fe14:46b7]) by mx1.freebsd.org (Postfix) with ESMTP id 0DA96C62; Thu, 3 Mar 2016 20:13:53 +0000 (UTC) (envelope-from joe@getsomewhere.net) Received: from [IPv6:2001:470:c412:beef:135:c8df:2d0e:4ea6] (unknown [IPv6:2001:470:c412:beef:135:c8df:2d0e:4ea6]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by prak.gameowls.com (Postfix) with ESMTPSA id 08E3A184D3; Thu, 3 Mar 2016 14:13:45 -0600 (CST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 9.2 \(3112\)) Subject: Re: linux(64)-compat and ipv6 setsockopt From: Joe Love In-Reply-To: <56D85D9F.7000400@FreeBSD.org> Date: Thu, 3 Mar 2016 14:13:44 -0600 Cc: freebsd-emulation@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: <15195725-A9AA-473E-8FF8-7A20CBBC18C8@getsomewhere.net> References: <7B0DAB1F-3C71-4E20-BC50-8EF4541B8D91@getsomewhere.net> <56D85D9F.7000400@FreeBSD.org> To: "Andrey V. Elsukov" X-Mailer: Apple Mail (2.3112) X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Mar 2016 20:13:53 -0000 Hi Andrey, I=E2=80=99ve tested the patch for my use case, and it does work. Thanks, -Joe > On Mar 3, 2016, at 9:51 AM, Andrey V. Elsukov wrote: >=20 > On 03.03.16 02:27, Joe Love wrote: >> int ipv6only =3D 1; setsockopt(this->fd6, IPPROTO_IPV6, IPV6_V6ONLY, >> &ipv6only, sizeof(ipv6only)); >>=20 >> Both Steamcmd and Factorio would spit out error messages like this >> (this one being from Factorio): 1.132 Error >> MultiplayerManager.cpp:108: MultiplayerManager failed: "Setsockopt >> failed: Protocol not available=E2=80=9D >=20 > Hi, >=20 > can you test this patch? I added some socket options for IPPROTO_IPV6 > layer that seem simple, the rest needs a bit more attention. > The patch is untested. >=20 > --=20 > WBR, Andrey V. Elsukov >