Date: 23 Oct 2001 14:00:20 +0200 From: Dag-Erling Smorgrav <des@ofug.org> To: Marcel Moolenaar <marcel@xcllnt.net> Cc: Martin Blapp <mb@imp.ch>, freebsd-emulation@FreeBSD.ORG Subject: Re: linux_connect() broken for linux_base-7 Message-ID: <xzpbsiy4ld7.fsf@flood.ping.uio.no> In-Reply-To: <20011022214353.A55317@dhcp01.pn.xcllnt.net> References: <20011022204208.Q29117-200000@levais.imp.ch> <20011022214353.A55317@dhcp01.pn.xcllnt.net>
next in thread | previous in thread | raw e-mail | index | archive | help
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?
> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?xzpbsiy4ld7.fsf>
