From owner-freebsd-net@FreeBSD.ORG Mon May 16 09:43:10 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 6ED5D16A4D0 for ; Mon, 16 May 2005 09:43:10 +0000 (GMT) Received: from postfix4-2.free.fr (postfix4-2.free.fr [213.228.0.176]) by mx1.FreeBSD.org (Postfix) with ESMTP id 882D443D97 for ; Mon, 16 May 2005 09:43:09 +0000 (GMT) (envelope-from tataz@tataz.chchile.org) Received: from tatooine.tataz.chchile.org (vol75-8-82-233-239-98.fbx.proxad.net [82.233.239.98]) by postfix4-2.free.fr (Postfix) with ESMTP id 44FBE319309; Mon, 16 May 2005 11:43:08 +0200 (CEST) Received: by tatooine.tataz.chchile.org (Postfix, from userid 1000) id 8C5054080; Mon, 16 May 2005 11:43:09 +0200 (CEST) Date: Mon, 16 May 2005 11:43:09 +0200 From: Jeremie Le Hen To: Sebastien Petit Message-ID: <20050516094309.GD777@obiwan.tataz.chchile.org> References: <20050513111013.41905e73.spe@phear.org> <20050513191705.61d2b742.spe@phear.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050513191705.61d2b742.spe@phear.org> User-Agent: Mutt/1.5.9i cc: freebsd-net@freebsd.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 09:43:10 -0000 Hi Sebastien, On Fri, May 13, 2005 at 07:17:05PM +0200, Sebastien Petit wrote: > [...] as a side note, you may wish to use the kqueue(2) framework to watch at link stat changes. The main advantage is that it will change the way it works from a polling model to a notification model. One major drawback in your situation (portable software) is that kqueue(2) only exists in BSD world, not in Linux. Best regards, -- Jeremie Le Hen < jeremie at le-hen dot org >< ttz at chchile dot org >