From owner-freebsd-net@FreeBSD.ORG Tue Dec 30 19:09:06 2008 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 53513106566B for ; Tue, 30 Dec 2008 19:09:06 +0000 (UTC) (envelope-from julian@elischer.org) Received: from outG.internet-mail-service.net (outg.internet-mail-service.net [216.240.47.230]) by mx1.freebsd.org (Postfix) with ESMTP id 3391A8FC17 for ; Tue, 30 Dec 2008 19:09:04 +0000 (UTC) (envelope-from julian@elischer.org) Received: from idiom.com (mx0.idiom.com [216.240.32.160]) by out.internet-mail-service.net (Postfix) with ESMTP id 16CE32416; Tue, 30 Dec 2008 11:09:04 -0800 (PST) X-Client-Authorized: MaGic Cook1e X-Client-Authorized: MaGic Cook1e X-Client-Authorized: MaGic Cook1e Received: from julian-mac.elischer.org (home.elischer.org [216.240.48.38]) by idiom.com (Postfix) with ESMTP id B7F622D6023; Tue, 30 Dec 2008 11:09:03 -0800 (PST) Message-ID: <495A71CF.2030000@elischer.org> Date: Tue, 30 Dec 2008 11:09:03 -0800 From: Julian Elischer User-Agent: Thunderbird 2.0.0.18 (Macintosh/20081105) MIME-Version: 1.0 To: Gerry Weaver References: <20081230190412.b20e996c@mail01.compvia.com> In-Reply-To: <20081230190412.b20e996c@mail01.compvia.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-net@freebsd.org, Ferner Cilloniz Subject: Re: kernel network X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Dec 2008 19:09:06 -0000 Gerry Weaver wrote: > _____ > > From: Ferner Cilloniz [mailto:fernercc@gmail.com] > To: freebsd-net@freebsd.org > Sent: Tue, 30 Dec 2008 05:49:55 -0600 > Subject: kernel network > > Guys, > > I do not think I could ever be more tired of this topic but I cannot > seem to understand what to do. I have tried more about a month now to > send arbitrary UDP packets from a kernel module but cannot achieve it. I > have looked at udp_send but found that building a socket* was much to > tedious. Later i looked at in-kernel webservers > (http://openketa.sourceforge.net/) but could not find anything useful. > > Netgraph is a possibility, but there isn't any documentation on > accessing the network from kernel space. > > What do you all suggest? > > > _______________________________________________ > freebsd-net@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" > Hello Ferner, > > I am working on a module that needs to do the same thing. I'm starting work on the socket code today. If and when I have something working, I will be more than happy to share some code snippets with you. > > Thanks, > Gerry > ng_ksocket of course does all this so you will find code samples in there.