Date: Fri, 25 Jun 1999 09:47:24 -0700 From: Mike Smith <mike@smith.net.au> To: Dan Seguin <dseg@texar.com> Cc: "Brian F. Feldman" <green@unixhelp.org>, FreeBSD Hackers <freebsd-hackers@FreeBSD.ORG> Subject: Re: Connect and so on.. Message-ID: <199906251647.JAA03265@dingo.cdrom.com> In-Reply-To: Your message of "Fri, 25 Jun 1999 11:25:42 EDT." <Pine.BSF.4.05.9906251107580.28392-100000@pak2.texar.com>
next in thread | previous in thread | raw e-mail | index | archive | help
> > > > static struct sockaddr_in servaddr; > > > > This needs to be a valid structure in USER space, not kernel. > > OK. I suspected as much. Question is: how do I open a connection from > KERNEL space? You don't. If you're really desperate to do this, you'll have to patch _all_ of the system calls to work out whether they're being called from the kernel or from userspace. There's actually a lot of utility in this, as it makes calling them easier from ABI modules as well. If you're looking for a nice, relatively easy FreeBSD hacking project, there's one right there. -- \\ The mind's the standard \\ Mike Smith \\ of the man. \\ msmith@freebsd.org \\ -- Joseph Merrick \\ msmith@cdrom.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199906251647.JAA03265>