From owner-freebsd-net@FreeBSD.ORG Mon Dec 8 08:23:40 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 217061065670 for ; Mon, 8 Dec 2008 08:23:39 +0000 (UTC) (envelope-from julian@elischer.org) Received: from outM.internet-mail-service.net (outm.internet-mail-service.net [216.240.47.236]) by mx1.freebsd.org (Postfix) with ESMTP id 0968A8FC1A for ; Mon, 8 Dec 2008 08:23:38 +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 4EB1124AD; Mon, 8 Dec 2008 00:23:57 -0800 (PST) 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 DDAF32D600D; Mon, 8 Dec 2008 00:23:39 -0800 (PST) Message-ID: <493CD98D.7000909@elischer.org> Date: Mon, 08 Dec 2008 00:23:41 -0800 From: Julian Elischer User-Agent: Thunderbird 2.0.0.18 (Macintosh/20081105) MIME-Version: 1.0 To: Ferner Cilloniz References: <1228699701.4940.2.camel@mobiliare.Belkin> <493CD5AB.8030303@elischer.org> <1228702422.4940.7.camel@mobiliare.Belkin> In-Reply-To: <1228702422.4940.7.camel@mobiliare.Belkin> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-net@freebsd.org Subject: Re: FreeBSD kernel module and sending udp packets 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: Mon, 08 Dec 2008 08:23:40 -0000 Ferner Cilloniz wrote: > Thanks for the reply. I read something about that but I didn't > understand what was being said. > > Can you please help me in understanding. I have googled for sample code > and didn't find anything useful. Can you, or anyone else, please help me > understand this? http://people.freebsd.org/~julian/netgraph.html > > Thanks again :) > > On Mon, 2008-12-08 at 00:07 -0800, Julian Elischer wrote: >> Ferner Cilloniz wrote: >>> Hello everyone. >>> >>> I need help with documentation concerning how to send a udp or tcp >>> packet from a kernel module. I have found this information for Linux but >>> not for FreeBSD. >>> >>> Please help me. >> you could give your module a netgraph interface. Then it can connect >> directly to the ng_ksocket node type and use that. as a nin-kernel socket. >> >> >> >>> Thank you :) >>> >>> _______________________________________________ >>> 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" >