From owner-freebsd-net@FreeBSD.ORG Mon May 16 12:38:34 2005 Return-Path: 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 58A3916A4D0 for ; Mon, 16 May 2005 12:38:34 +0000 (GMT) Received: from arginine.spc.org (arginine.spc.org [83.167.185.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id A5B4643D97 for ; Mon, 16 May 2005 12:38:33 +0000 (GMT) (envelope-from bms@spc.org) Received: from localhost (localhost [127.0.0.1]) by arginine.spc.org (Postfix) with ESMTP id C704F651EE; Mon, 16 May 2005 13:37:06 +0100 (BST) Received: from arginine.spc.org ([127.0.0.1]) by localhost (arginine.spc.org [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 35024-05-11; Mon, 16 May 2005 13:37:06 +0100 (BST) Received: from empiric.dek.spc.org (host81-134-75-74.in-addr.btopenworld.com [81.134.75.74]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by arginine.spc.org (Postfix) with ESMTP id 6B316651EB; Mon, 16 May 2005 13:36:57 +0100 (BST) Received: by empiric.dek.spc.org (Postfix, from userid 1001) id 39B37623B; Mon, 16 May 2005 13:38:17 +0100 (BST) Date: Mon, 16 May 2005 13:38:17 +0100 From: Bruce M Simpson To: Sebastien Petit Message-ID: <20050516123817.GF828@empiric.icir.org> Mail-Followup-To: Sebastien Petit , freebsd-net@freebsd.org, jeremie@le-hen.org References: <20050513111013.41905e73.spe@phear.org> <20050513191705.61d2b742.spe@phear.org> <20050516094309.GD777@obiwan.tataz.chchile.org> <20050516143136.4dea9cb9.spe@phear.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050516143136.4dea9cb9.spe@phear.org> cc: freebsd-net@freebsd.org cc: jeremie@le-hen.org Subject: Re: SIOCGIFMEDIA problems X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 May 2005 12:38:34 -0000 On Mon, May 16, 2005 at 02:31:36PM +0200, Sebastien Petit wrote: > As I can see in kqueue man, I can only monitor events by file descriptor (read/write), a process id, a signal or a timer (under NetBSD 2) > How I can use it for monitoring link status change on a network card ? You need to use EVFILT_NETDEV and that may only be implemented on FreeBSD to the best of my knowledge. See kqueue(2) on FreeBSD for more details. BMS