From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 468A7138010 for ; Tue, 11 Sep 2012 13:16:23 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 186ED21C001; Tue, 11 Sep 2012 13:16:06 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id AB077E07BA for ; Tue, 11 Sep 2012 13:15:07 +0000 (UTC) Received: from [192.168.1.145] (CPE002401f30b73-CM001cea3ddad8.cpe.net.cable.rogers.com [99.240.69.152]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: axs) by smtp.gentoo.org (Postfix) with ESMTPSA id A5DE7335E31 for ; Tue, 11 Sep 2012 13:15:06 +0000 (UTC) Message-ID: <504F3957.70106@gentoo.org> Date: Tue, 11 Sep 2012 09:15:03 -0400 From: Ian Stakenvicius User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.6esrpre) Gecko/20120731 Thunderbird/10.0.6 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org MIME-Version: 1.0 To: gentoo-dev@lists.gentoo.org Subject: Re: [gentoo-dev] rfc: netplugd and ifplugd support in OpenRc References: <20120910144832.GA22292@linux1> In-Reply-To: X-Enigmail-Version: 1.3.5 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Archives-Salt: 09119a84-6c7c-4a12-bd41-f9714f0b7fb1 X-Archives-Hash: 8735063972137219a011d82472e05062 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 On 10/09/12 04:05 PM, David Leverton wrote: > 4) dhcpcd: not sure when it was introduced, but current dhcpcd can > detect when the link goes up and down, and request/renew its lease > when it comes up. The only wrinkle that I can see here is that, if > no ifplugd/netplug/wpa_supplicant is configured, OpenRC waits for > it to receive a lease when starting the interface, rather than > allowing it to background itself. > > So for dhcpcd, it might be enough to just make OpenRC aware that > it doesn't need to wait for a lease when starting the interface. According to bug 253925 , this would only work for certain hardware (ie, those that support the IFF_RUNNING method); ifplugd suppots three methods (IFF_RUNNING, ethtool-style, mii-style), and netplug -seems- to do it by connecting at the netlink level to the interface and just listening for traffic (as far as I can tell). So for link detection, both ifplugd and netplug would be better than attempting to just use dhcpcd, imo (not to mention the non-dhcp-based configs).. (plus, since this is all for oldnet only, i would expect dhcpcd would be a bit of an issue to integrate so that it would be able to move net.* from inactive to started state and then exclude it from being run a second time to configure the now-up iface..) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (GNU/Linux) iF4EAREIAAYFAlBPOVcACgkQ2ugaI38ACPBevgD+LN73S/g6aQ8D2sR4rrIjNkSd 3eP1KgcGoEFeU+yPFIcA/RyC/fShiEaLiATnxN0ybymqspMQQcSrLj4GxeMqnPfs =jpCo -----END PGP SIGNATURE-----