From owner-freebsd-net@FreeBSD.ORG Mon Dec 8 08:20:04 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 4ECBD1065670 for ; Mon, 8 Dec 2008 08:20:04 +0000 (UTC) (envelope-from julian@elischer.org) Received: from outD.internet-mail-service.net (outd.internet-mail-service.net [216.240.47.227]) by mx1.freebsd.org (Postfix) with ESMTP id 2D0328FC22 for ; Mon, 8 Dec 2008 08:20:03 +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 1381D24AD; Mon, 8 Dec 2008 00:07:19 -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 5D8CE2D6017; Mon, 8 Dec 2008 00:07:06 -0800 (PST) Message-ID: <493CD5AB.8030303@elischer.org> Date: Mon, 08 Dec 2008 00:07:07 -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> In-Reply-To: <1228699701.4940.2.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:20:04 -0000 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"