From owner-freebsd-net@FreeBSD.ORG Fri Jul 15 16:32:46 2005 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DEF1D16A41C for ; Fri, 15 Jul 2005 16:32:46 +0000 (GMT) (envelope-from vanvorst@ieee.org) Received: from mail.stupendousness.org (67-41-211-151.brbn.qwest.net [67.41.211.151]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5754A43D46 for ; Fri, 15 Jul 2005 16:32:44 +0000 (GMT) (envelope-from vanvorst@ieee.org) Received: from brussels.luv.shack (localhost.localdomain [127.0.0.1]) by mail.stupendousness.org (8.13.1/8.13.1) with ESMTP id j6FGWhAx011537 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Fri, 15 Jul 2005 10:32:43 -0600 Received: (from apache@localhost) by brussels.luv.shack (8.13.1/8.13.1/Submit) id j6FGWhfG011536; Fri, 15 Jul 2005 10:32:43 -0600 X-Authentication-Warning: brussels.luv.shack: apache set sender to vanvorst@ieee.org using -f Received: from 157.127.124.134 (proxying for unknown) (SquirrelMail authenticated user vanvorst) by www.stupendousness.org with HTTP; Fri, 15 Jul 2005 10:32:43 -0600 (MDT) Message-ID: <57865.157.127.124.134.1121445163.squirrel@www.stupendousness.org> Date: Fri, 15 Jul 2005 10:32:43 -0600 (MDT) From: "Nathanael M Van Vorst" To: freebsd-net@freebsd.org User-Agent: SquirrelMail/1.4.4-1.FC3 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal Subject: netgraph question X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: vanvorst@ieee.org List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 15 Jul 2005 16:32:47 -0000 I have some questions about netgraph. I have been using the framework for project for a little while. I am at the point where I want to hand-off netgraph items to a kernel thread or a kernel module. Then I want the module or thread to do some processing and hand this back to netgraph. I looked through a little bit, and did not find an easy way. Did I miss it? Marching on, I wrote up a little module that had two functions that a node could call. One to regiter the hook to pass items back on, and one to pass items to to the module. Inside the module I call NG_FWD_ITEM to send the item back on the passed in hook. It always crashes in the ITEM_DEBUG macro. Help? Where should I go? When I get a kernel core, the stack is corrupt so it is f no use. If anyone is curious I can send the little test code I have cobbled together to see how I might do this. Thanks!! --Nate --------------------------------------- Nathanael Van Vorst Home: vanvorst@ieee.org “It is intuitively obvious to even the most casual of observers!”