Date: Fri, 26 Mar 2004 18:17:13 -0500 From: Suleiman Souhlal <refugee@segfaulted.com> To: Dirk-Willem van Gulik <dirkx@webweaving.org> Cc: freebsd-hackers@freebsd.org Subject: Re: events when (de)associating or when cable is (un)plugged Message-ID: <20040326181713.32971952@zZzZ.segfaulted.com> In-Reply-To: <39FE23FA-7F75-11D8-8F99-000A95CDA38A@webweaving.org> References: <39FE23FA-7F75-11D8-8F99-000A95CDA38A@webweaving.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Hi, On Fri, 26 Mar 2004 23:30:46 +0100 Dirk-Willem van Gulik <dirkx@webweaving.org> wrote: > Looking for suggestions on a 'clean' and generic way to allow for > notifications when a 802.11 association is made or lost, or when > a ethernet cable is (un)plugged. I.e.akin to the events 'usbd(8) get > when you sit on /dev/usb. This is for 5.2.1 or beyond. I am not too sure about 802.11, but to detect when the ethernet cable is (un)plugged, you can use kqueue(2) with the EVFILT_NETDEV filter. Later, Suleiman Souhlal
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040326181713.32971952>