Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758903Ab1CCWaA (ORCPT ); Thu, 3 Mar 2011 17:30:00 -0500 Received: from sv2.nico22.de ([62.112.144.130]:52119 "EHLO sv2.nico22.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758762Ab1CCW37 (ORCPT ); Thu, 3 Mar 2011 17:29:59 -0500 Date: Thu, 3 Mar 2011 23:29:57 +0100 From: Nico =?iso-8859-1?Q?Sch=FCmann?= To: David Miller Cc: chris.friesen@genband.com, linux-kernel@vger.kernel.org, netdev@vger.kernel.org Subject: Re: Network link detection Message-ID: <20110303222957.GA30472@svh.nico22.de> References: <20110303193006.GA29129@svh.nico22.de> <4D700A5B.2000807@genband.com> <20110303.140106.191399853.davem@davemloft.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20110303.140106.191399853.davem@davemloft.net> User-Agent: Mutt/1.5.20 (2009-06-14) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1172 Lines: 31 On Thu, Mar 03, 2011 at 02:01:06PM -0800, David Miller wrote: > From: Chris Friesen > Date: Thu, 03 Mar 2011 15:38:35 -0600 > > > You might look at whether you could write a kernel module to register > > for NETDEV_CHANGE notifications and pass that back to userspace. > > This is the kind of responses you get when you ask networking specific > questions and don't CC: netdev :-/ > Thank you for CC. > There is this thing called netlink, you can listen for arbitrary > network state change events on a socket, and get the link state > notifications you are looking for. It's in use by many real > applications like NetworkManager and co. That really looks like what I'm looking for. I was already wondering where NetworkManager gets the link state changes from, but I just expected it to poll. So now I'll read a bit of documentation and hopefully get it work. Thanks to everyone, Nico -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/