> 
> > >   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.                   \\  [EMAIL PROTECTED]
\\    -- Joseph Merrick           \\  [EMAIL PROTECTED]




To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to