From owner-freebsd-emulation@FreeBSD.ORG Tue May 5 18:42:07 2009 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 75F6F106566C for ; Tue, 5 May 2009 18:42:07 +0000 (UTC) (envelope-from dchagin@dchagin.static.corbina.ru) Received: from contrabass.post.ru (contrabass.post.ru [85.21.78.5]) by mx1.freebsd.org (Postfix) with ESMTP id 22B3E8FC18 for ; Tue, 5 May 2009 18:42:06 +0000 (UTC) (envelope-from dchagin@dchagin.static.corbina.ru) Received: from corbina.ru (mail.post.ru [195.14.50.16]) by contrabass.post.ru (Postfix) with ESMTP id B839B9918C; Tue, 5 May 2009 22:42:05 +0400 (MSD) X-Virus-Scanned: by cgpav Uf39PSi9pFi9oFi9 Received: from [10.208.17.3] (HELO dchagin.static.corbina.ru) by corbina.ru (CommuniGate Pro SMTP 5.1.14) with ESMTPS id 1774236500; Tue, 05 May 2009 22:42:05 +0400 Received: from dchagin.static.corbina.ru (localhost.chd.net [127.0.0.1]) by dchagin.static.corbina.ru (8.14.3/8.14.3) with ESMTP id n45Ig526018741; Tue, 5 May 2009 22:42:05 +0400 (MSD) (envelope-from dchagin@dchagin.static.corbina.ru) Received: (from dchagin@localhost) by dchagin.static.corbina.ru (8.14.3/8.14.3/Submit) id n45IfxF7018740; Tue, 5 May 2009 22:41:59 +0400 (MSD) (envelope-from dchagin) Date: Tue, 5 May 2009 22:41:59 +0400 From: Chagin Dmitry To: Boris Samorodov Message-ID: <20090505184159.GA18677@dchagin.static.corbina.ru> References: <81924694@bb.ipt.ru> <20090505144955.16373k1b32dpaxo0@webmail.leidinger.net> <47993241@bb.ipt.ru> <20090505160827.1359651x47bqmxc8@webmail.leidinger.net> <67678219@bb.ipt.ru> <20090505160724.GB14703@dchagin.static.corbina.ru> <35513746@bb.ipt.ru> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="UlVJffcvxoiEqYs2" Content-Disposition: inline In-Reply-To: <35513746@bb.ipt.ru> User-Agent: Mutt/1.5.19 (2009-01-05) Cc: Alexander Leidinger , freebsd-emulation@freebsd.org Subject: Re: [linux-f10] linux_socketcall... ERR#43 'Protocol not supported' X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 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: Tue, 05 May 2009 18:42:07 -0000 --UlVJffcvxoiEqYs2 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, May 05, 2009 at 08:41:01PM +0400, Boris Samorodov wrote: > On Tue, 5 May 2009 20:07:24 +0400 Chagin Dmitry wrote: > > On Tue, May 05, 2009 at 07:26:28PM +0400, Boris Samorodov wrote: >=20 > > > May 5 19:10:34 bb kernel: bsam: linux_socket (LINUX): domain: 2, typ= e: 2050, protocol: 0 > > > May 5 19:10:34 bb kernel: bsam: linux_socket (FreeBSD): domain: 2 > > > May 5 19:10:34 bb kernel: bsam: LINUX_SOCKET: 43 > > > May 5 19:10:34 bb kernel: bsam: Entering linux_socketcall. > > > May 5 19:10:34 bb kernel: bsam: linux_socket (LINUX): domain: 2, typ= e: 2050, protocol: 0 > > > May 5 19:10:34 bb kernel: bsam: linux_socket (FreeBSD): domain: 2 > > > May 5 19:10:34 bb kernel: bsam: LINUX_SOCKET: 43 > > > ----- > > >=20 > > > Corresponding text for linux_kdump and truss: > > > ftp://ftp.ipt.ru/pub/linux/linux_kdump.ping.txt > > > ftp://ftp.ipt.ru/pub/linux/truss.ping.txt > > >=20 >=20 > > heh, it seems to me that SOCK_CLOEXEC, SOCK_NONBLOCK bits used. > > should be fixed. socketpair() also uses it since 2.6.29 >=20 > I'll be glad to test patches. >=20 dchagin# ./ping ya.ru WARNING: setsockopt(ICMP_FILTER): Protocol not available WARNING: your kernel is veeery old. No problems. PING ya.ru (213.180.204.8) 56(84) bytes of data. ping: recvmsg: Invalid argument ping: recvmsg: Invalid argument So, more work nedeed. At least from 2.6.16 to 2.6.23 :) --=20 Have fun! chd --UlVJffcvxoiEqYs2 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.10 (FreeBSD) iEYEARECAAYFAkoAiHcACgkQ0t2Tb3OO/O2rCgCfaKgeIao8BjZmNCGvBuBXpH5N T/EAn0Rz4Pym8k6KawtFTDmxl8vWAWuy =hROq -----END PGP SIGNATURE----- --UlVJffcvxoiEqYs2--