From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from sc8-sf-mx2-b.sourceforge.net ([10.3.1.12] helo=sc8-sf-mx2.sourceforge.net) by sc8-sf-list1.sourceforge.net with esmtp (Exim 4.30) id 1Azx9p-0002wU-9k for user-mode-linux-devel@lists.sourceforge.net; Sun, 07 Mar 2004 04:13:25 -0800 Received: from mout1.freenet.de ([194.97.50.132]) by sc8-sf-mx2.sourceforge.net with esmtp (TLSv1:AES256-SHA:256) (Exim 4.30) id 1AzwYP-0007c5-Qd for user-mode-linux-devel@lists.sourceforge.net; Sun, 07 Mar 2004 03:34:45 -0800 Content-Type: text/plain; charset="iso-8859-1" From: Patrick Kilian Reply-To: petschge@web.de Subject: Re: [uml-devel] Re: [uml-user] UNIX socket networking References: <200402290158.54770.jdizzl@xs4all.nl> <200403022240.25616.petschge@gmx.de> <200403071228.15509.blaisorblade_spam@yahoo.it> In-Reply-To: <200403071228.15509.blaisorblade_spam@yahoo.it> MIME-Version: 1.0 Message-Id: <200403071256.18134.petschge@gmx.de> Sender: user-mode-linux-devel-admin@lists.sourceforge.net Errors-To: user-mode-linux-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Id: The user-mode Linux development list List-Post: List-Help: List-Subscribe: , List-Archive: Date: Sun, 7 Mar 2004 12:56:18 +0100 Content-Transfer-Encoding: quoted-printable To: BlaisorBlade , user-mode-linux-devel@lists.sourceforge.net Hi all, > You refer to bind in the guest, right? Well, you call the > socket->ops->bind, while you should probably at least call sys_bind. Ok. I'll give it a try. > Your kernel thread is simply a process running in kernel mode - so > instead of calling bind(), you just call sys_bind() skipping some > useless code (int 0x80, userspace/kernelspace transition and so on). > But you cannot, in general, skip anything else unless you have a > reason to do so. I didn't know what the exact difference between bind(), sys_bind() and=20 sockert->ops->bind() was. > Probably, the same reasoning applies to a lot of other code - why > sock_create instead of sys_socket, why sock_recvmsg ... and so on. > Please, at least change both sys_socket and sys_bind before asking > again. Ok the next version will be updated. > I *do not* understand how ENOENT is actually returned, but probably > something that normally fails for a missing file failed for the lack > of coherency. Yeah that could be the reason. >> Most of the above code should probably be edited with rm > What is that? Indentation cleanup? rm as in "man 1 rm".=20 >> , but you wanted to have my results so far. Now go and find a brown >> paper bag. > No, do not - seeing the code is very useful indeed. If you say so... I'll give you sugestions a try and be back in some days with Yet Another=20 Version of my code. mfg, Patrick "Petschge" Kilian ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id638&op=CCk _______________________________________________ User-mode-linux-devel mailing list User-mode-linux-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel