From owner-freebsd-net Fri Oct 11 18:39:30 2002 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 7280037B401 for ; Fri, 11 Oct 2002 18:39:29 -0700 (PDT) Received: from dibbler.ne.client2.attbi.com (dibbler.ne.client2.attbi.com [24.61.41.247]) by mx1.FreeBSD.org (Postfix) with ESMTP id D459D43E6E for ; Fri, 11 Oct 2002 18:39:28 -0700 (PDT) (envelope-from rodrigc@attbi.com) Received: from dibbler.ne.client2.attbi.com (localhost.ne.attbi.com [127.0.0.1]) by dibbler.ne.client2.attbi.com (8.12.6/8.12.5) with ESMTP id g9C1eCCK019960 for ; Fri, 11 Oct 2002 21:40:12 -0400 (EDT) (envelope-from rodrigc@dibbler.ne.client2.attbi.com) Received: (from rodrigc@localhost) by dibbler.ne.client2.attbi.com (8.12.6/8.12.6/Submit) id g9C1eCUn019959 for freebsd-net@freebsd.org; Fri, 11 Oct 2002 21:40:12 -0400 (EDT) Date: Fri, 11 Oct 2002 21:40:11 -0400 From: Craig Rodrigues To: freebsd-net@freebsd.org Subject: kqueue + Netgraph? Message-ID: <20021011214011.A19877@attbi.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Hi, I am playing with Harti Brandt's Netgraph ATM driver for my Fore PCA-200E card, and wrote my first netgraph program with libnetgraph. Using NgRecvMsg(), I can detect when the ATM card loses carrier. So when I pull out the cable from my card, my little program gets notified. I thought this was fun. :) I have a few questions: (1) Is it possible to combine user-space netgraph notifications with kqueue()? Does anyone have sample code illustrating this? I started playing with kqueue and thought it was really cool. (2) Would it be useful to have some function in libnetgraph for hooking two nodes together? It seems like it would be useful to have. Right now I just copied the source code of nghook and put it into my little program. Thanks. -- Craig Rodrigues http://www.gis.net/~craigr rodrigc@attbi.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message