From owner-freebsd-net Tue Nov 5 13:40:42 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 8F58737B401; Tue, 5 Nov 2002 13:40:40 -0800 (PST) Received: from InterJet.elischer.org (12-232-206-8.client.attbi.com [12.232.206.8]) by mx1.FreeBSD.org (Postfix) with ESMTP id E5D8B43E3B; Tue, 5 Nov 2002 13:40:39 -0800 (PST) (envelope-from julian@elischer.org) Received: from localhost (localhost.elischer.org [127.0.0.1]) by InterJet.elischer.org (8.9.1a/8.9.1) with ESMTP id NAA70447; Tue, 5 Nov 2002 13:31:48 -0800 (PST) Date: Tue, 5 Nov 2002 13:31:47 -0800 (PST) From: Julian Elischer To: Maksim Yevmenkin Cc: current@freebsd.org, net@freebsd.org Subject: Re: Netgraph and KQUEUE(2) In-Reply-To: <3DC82EB5.7974429D@exodus.net> Message-ID: MIME-Version: 1.0 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 It's not a bad idea. On Tue, 5 Nov 2002, Maksim Yevmenkin wrote: > Dear Hackers, > > I would like to get some feedback on the idea i have. > Basically i would like Netgraph system to send kevents > whenever something happens. For example: > > 1) node X of type Y was created/destroyed > 2) hook X was connected/disconnected to/from node Y > 3) Data passed via hook X > 4) Node X got message Y > > etc. > > Right now i can think of two scenarios where this > could be useful. > > 1) Device driver in Netgraph node. When hardware is > activated new Netgraph node is created and new > kevent sent. devd (or something like devd) listens > for these events and does something (loads firmware, > activates device, etc.) > > 2) ngdump - "tcpdump" for Netgraph. Dumps everything > that happens in the Netgraph. > > what do you think? > > thanks, > max > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message