From owner-freebsd-hackers Fri Jun 25 9:51:26 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from dingo.cdrom.com (castles520.castles.com [208.214.165.84]) by hub.freebsd.org (Postfix) with ESMTP id 92C89150CF for ; Fri, 25 Jun 1999 09:51:24 -0700 (PDT) (envelope-from mike@dingo.cdrom.com) Received: from dingo.cdrom.com (localhost [127.0.0.1]) by dingo.cdrom.com (8.9.3/8.8.8) with ESMTP id JAA03265; Fri, 25 Jun 1999 09:47:24 -0700 (PDT) (envelope-from mike@dingo.cdrom.com) Message-Id: <199906251647.JAA03265@dingo.cdrom.com> X-Mailer: exmh version 2.0.2 2/24/98 To: Dan Seguin Cc: "Brian F. Feldman" , FreeBSD Hackers Subject: Re: Connect and so on.. In-reply-to: Your message of "Fri, 25 Jun 1999 11:25:42 EDT." Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Fri, 25 Jun 1999 09:47:24 -0700 From: Mike Smith Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > > > > 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