Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 11 Oct 2002 21:40:11 -0400
From:      Craig Rodrigues <rodrigc@attbi.com>
To:        freebsd-net@freebsd.org
Subject:   kqueue + Netgraph?
Message-ID:  <20021011214011.A19877@attbi.com>

next in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021011214011.A19877>