From owner-freebsd-emulation Tue Oct 23 5: 0:25 2001 Delivered-To: freebsd-emulation@freebsd.org Received: from flood.ping.uio.no (flood.ping.uio.no [129.240.78.31]) by hub.freebsd.org (Postfix) with ESMTP id 2C0D137B405 for ; Tue, 23 Oct 2001 05:00:23 -0700 (PDT) Received: by flood.ping.uio.no (Postfix, from userid 2602) id 5D7D114C2E; Tue, 23 Oct 2001 14:00:21 +0200 (CEST) X-URL: http://www.ofug.org/~des/ X-Disclaimer: The views expressed in this message do not necessarily coincide with those of any organisation or company with which I am or have been affiliated. To: Marcel Moolenaar Cc: Martin Blapp , freebsd-emulation@FreeBSD.ORG Subject: Re: linux_connect() broken for linux_base-7 References: <20011022204208.Q29117-200000@levais.imp.ch> <20011022214353.A55317@dhcp01.pn.xcllnt.net> From: Dag-Erling Smorgrav Date: 23 Oct 2001 14:00:20 +0200 In-Reply-To: <20011022214353.A55317@dhcp01.pn.xcllnt.net> Message-ID: Lines: 23 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Marcel Moolenaar writes: > \begin{quote} > Just FYI, the linux_base-7 resolver library uses sockaddr_in6's with > AF_INET and just the inet part filled in, but FreeBSD doesn't allow > using the wrong sized sockaddr. This is going to require some > serious hackery in the Linux compatability stuff, since it's > the FreeBSD syscall's responsibility to copyin() the socket address > argument; if the compatability stuff wants to modify it it's going > to have to find somewhere that it can copyin() from to stash the > modified one... > \end{quote} That would be the stackgap, right? > In a following email he supplied a patch: It won't build on Alpha. You need to move linux_to_bsd_namelen() out of the #indef __alpha__ block. Apart from that, it looks right; I haven't tested it though. DES -- Dag-Erling Smorgrav - des@ofug.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message