Date: Tue, 23 Oct 2001 21:53:54 -0700 From: Marcel Moolenaar <marcel@xcllnt.net> To: Dag-Erling Smorgrav <des@ofug.org> Cc: Martin Blapp <mb@imp.ch>, freebsd-emulation@FreeBSD.ORG Subject: Re: linux_connect() broken for linux_base-7 Message-ID: <20011023215354.A2044@dhcp01.pn.xcllnt.net> In-Reply-To: <xzpbsiy4ld7.fsf@flood.ping.uio.no> References: <20011022204208.Q29117-200000@levais.imp.ch> <20011022214353.A55317@dhcp01.pn.xcllnt.net> <xzpbsiy4ld7.fsf@flood.ping.uio.no>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Oct 23, 2001 at 02:00:20PM +0200, Dag-Erling Smorgrav wrote: > Marcel Moolenaar <marcel@xcllnt.net> 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? Yes. > > 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. Me neither. I just forwarded it :-) -- Marcel Moolenaar USPA: A-39004 marcel@xcllnt.net To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20011023215354.A2044>