From owner-freebsd-net@FreeBSD.ORG Mon Dec 8 18:47:21 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 715BF1065673 for ; Mon, 8 Dec 2008 18:47:21 +0000 (UTC) (envelope-from fernercc@gmail.com) Received: from rv-out-0506.google.com (rv-out-0506.google.com [209.85.198.224]) by mx1.freebsd.org (Postfix) with ESMTP id 403438FC17 for ; Mon, 8 Dec 2008 18:47:21 +0000 (UTC) (envelope-from fernercc@gmail.com) Received: by rv-out-0506.google.com with SMTP id b25so1286970rvf.43 for ; Mon, 08 Dec 2008 10:47:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:subject:from:to:cc :in-reply-to:references:content-type:date:message-id:mime-version :x-mailer:content-transfer-encoding; bh=CnCIwhjvxlC9qO9uABAwZaRa21OZZZ3mE+mVQVhX4Ks=; b=b34XKtKZl/sAb7bMniaJbkCmaYZG0XuWImBWDhBOPvMV6/XEtuh5tyYZRCg7HRAcSZ VdRQ5BEo9PbMojnC/YkgKVptLJbXwjH8R3+4JRZweBU79FAGEM4w4yVTYdnhGyOXDYsK lO9UgvvbBQk6wVro85UvUCcSpAWOCq4zfy17g= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:from:to:cc:in-reply-to:references:content-type:date :message-id:mime-version:x-mailer:content-transfer-encoding; b=sTvzdr/6sr2MluhPdfjg+3q8Eg99k1VYABszOiyIXwvToBh4+6uJ2Yr0xXqQuQyEli ulzhGoq3lzPTSAe3ymUyh8um1/ZMaB1hj+S0WUImZf7/0YlRkLIQZbTn1fU3wmiAEloK yobqJJnHXcEZE3aBl9a2GCxJfzzF44+iVMAVk= Received: by 10.140.141.16 with SMTP id o16mr1786542rvd.138.1228762040846; Mon, 08 Dec 2008 10:47:20 -0800 (PST) Received: from ?128.62.218.56? (w-mob400-128-62-218-56.public.utexas.edu [128.62.218.56]) by mx.google.com with ESMTPS id l31sm27130917rvb.2.2008.12.08.10.47.19 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 08 Dec 2008 10:47:19 -0800 (PST) From: Ferner Cilloniz To: Julian Elischer In-Reply-To: <493CD98D.7000909@elischer.org> References: <1228699701.4940.2.camel@mobiliare.Belkin> <493CD5AB.8030303@elischer.org> <1228702422.4940.7.camel@mobiliare.Belkin> <493CD98D.7000909@elischer.org> Content-Type: text/plain Date: Mon, 08 Dec 2008 12:47:17 +0000 Message-Id: <1228740437.4956.1.camel@mobiliare> Mime-Version: 1.0 X-Mailer: Evolution 2.24.2 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 18:47:21 -0000 Hi Julian. I'm very happy for your help. I have read the guide to netgraph and find it very interesting :) I still dont understand when you say "you could give your module a netgraph interface." Can you please explain this a little more please? Thanks. On Mon, 2008-12-08 at 00:23 -0800, Julian Elischer wrote: > 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" > > > -- Cilloniz Bicchi, Ferner Research Assistant Dept. of Computer Sciences The University of Texas at Austin http://www.cs.utexas.edu/~fernercc fernercc@cs.utexas.edu