netdev
[Top] [All Lists]

Re: Kernel Network Implementation help.

To: EOIN RYAN <9726179@xxxxxxxxxxxxx>
Subject: Re: Kernel Network Implementation help.
From: Andi Kleen <ak@xxxxxx>
Date: Fri, 23 Mar 2001 16:39:08 +0100
Cc: "'netdev@xxxxxxxxxxx'" <netdev@xxxxxxxxxxx>
In-reply-to: <992C0C12C388D411B264009027AA3418698F31@gabriel.ul.ie>; from EOIN RYAN on Fri, Mar 23, 2001 at 02:38:34PM +0100
References: <992C0C12C388D411B264009027AA3418698F31@gabriel.ul.ie>
Sender: owner-netdev@xxxxxxxxxxx
On Fri, Mar 23, 2001 at 02:38:34PM +0100, EOIN RYAN wrote:
> get a server to accept a connection and receive a few characters from it.
> The server accepts a telnet connection and gets the name of the connecting
> session however when I try to do a sock->ops->recvmsg i get a efault.

Wrap it with 

mm_segment_t oldfs = get_fs(); 
set_fs(KERNEL_DS); 

...

set_fs(oldfs); 


-Andi



<Prev in Thread] Current Thread [Next in Thread>