From owner-freebsd-net Fri Oct 11 19: 0:14 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 6550F37B406 for ; Fri, 11 Oct 2002 19:00:12 -0700 (PDT) Received: from InterJet.dellroad.org (adsl-63-194-81-26.dsl.snfc21.pacbell.net [63.194.81.26]) by mx1.FreeBSD.org (Postfix) with ESMTP id CF6E643E7B for ; Fri, 11 Oct 2002 19:00:11 -0700 (PDT) (envelope-from archie@dellroad.org) Received: from arch20m.dellroad.org (arch20m.dellroad.org [10.1.1.20]) by InterJet.dellroad.org (8.9.1a/8.9.1) with ESMTP id SAA88386; Fri, 11 Oct 2002 18:45:34 -0700 (PDT) Received: from arch20m.dellroad.org (localhost [127.0.0.1]) by arch20m.dellroad.org (8.12.6/8.12.6) with ESMTP id g9C1iMON059380; Fri, 11 Oct 2002 18:44:22 -0700 (PDT) (envelope-from archie@arch20m.dellroad.org) Received: (from archie@localhost) by arch20m.dellroad.org (8.12.6/8.12.6/Submit) id g9C1iM09059379; Fri, 11 Oct 2002 18:44:22 -0700 (PDT) From: Archie Cobbs Message-Id: <200210120144.g9C1iM09059379@arch20m.dellroad.org> Subject: Re: kqueue + Netgraph? In-Reply-To: <20021011214011.A19877@attbi.com> "from Craig Rodrigues at Oct 11, 2002 09:40:11 pm" To: Craig Rodrigues Date: Fri, 11 Oct 2002 18:44:22 -0700 (PDT) Cc: freebsd-net@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL88 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII 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 Craig Rodrigues writes: > (1) Is it possible to combine user-space netgraph notifications with > kqueue()? Sure. kqueue() works with any file descriptors, including netgraph sockets. > (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. It's such a small amount of code it doesn't really warrant adding a new function IMHO. Cheers, -Archie __________________________________________________________________________ Archie Cobbs * Packet Design * http://www.packetdesign.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message