From owner-freebsd-hackers Thu Aug 23 10: 3:53 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from InterJet.elischer.org (c421509-a.pinol1.sfba.home.com [24.7.86.9]) by hub.freebsd.org (Postfix) with ESMTP id BCF4C37B40D for ; Thu, 23 Aug 2001 10:03:45 -0700 (PDT) (envelope-from julian@elischer.org) Received: from localhost (localhost.elischer.org [127.0.0.1]) by InterJet.elischer.org (8.9.1a/8.9.1) with ESMTP id KAA53661; Thu, 23 Aug 2001 10:09:45 -0700 (PDT) Date: Thu, 23 Aug 2001 10:09:45 -0700 (PDT) From: Julian Elischer To: Sandeep Joshi Cc: Foldi Tamas , freebsd-hackers@FreeBSD.ORG Subject: Re: Kernel level inet socket handling In-Reply-To: <3B852799.72A4D8CC@research.bell-labs.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG The netgraph 'accept' handling IS implemented by someone.. I can find it and add it if needed.. On Thu, 23 Aug 2001, Sandeep Joshi wrote: > > I believe the functions you need are in kern/uipc_socket.c > (socreate, sosend, soreceive, soclose, sosetopt..) > > Alternately, you could also do as follows, for each > of the above functions > so->so_proto->pr_usrreqs->pru_sosend(so, 0, uio, 0, 0, 0, > uio->uio_procp) > > I am not sure if netgraph (netgraph/ng_ksocket.c) would > work, since some part of ng_ksocket_rcvmsg() is not > implemented (e.g. accept) > > For sample usage of these functions, see > nfs/nfs_socket.c > nfs/krpc_subr.c > fifofs/fifo_vnops.c > > -Sandeep > > Foldi Tamas wrote: > > > > Cheers! > > > > My problem is the following: I want to do high level network handling > > from a kernel thread (as in inet socket handling, connect/bind, etc). > > I couldn't find any documentation about this, which would be of > > practical help. > > > > If someone knows about something like this (text, sources, anything), > > please reply to me. > > > > Thanks in advance, > > Best regards > > Tamas Foldi > > > > . . _ __ ______________________________________________________ __ _ . . > > Foldi Tamas - We Are The Hashmark In The Rootshell - Security Consultant > > crow@kapu.hu - PGP: finger://crow@thot.banki.hu - (+3630) 221-7477 > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > > with "unsubscribe freebsd-hackers" in the body of the message > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-hackers" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message