Gentoo Archives: gentoo-dev

From: Ian Stakenvicius <axs@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] rfc: netplugd and ifplugd support in OpenRc
Date: Tue, 11 Sep 2012 13:16:23
Message-Id: 504F3957.70106@gentoo.org
In Reply to: Re: [gentoo-dev] rfc: netplugd and ifplugd support in OpenRc by David Leverton
1 -----BEGIN PGP SIGNED MESSAGE-----
2 Hash: SHA256
3
4 On 10/09/12 04:05 PM, David Leverton wrote:
5 > 4) dhcpcd: not sure when it was introduced, but current dhcpcd can
6 > detect when the link goes up and down, and request/renew its lease
7 > when it comes up. The only wrinkle that I can see here is that, if
8 > no ifplugd/netplug/wpa_supplicant is configured, OpenRC waits for
9 > it to receive a lease when starting the interface, rather than
10 > allowing it to background itself.
11 >
12 > So for dhcpcd, it might be enough to just make OpenRC aware that
13 > it doesn't need to wait for a lease when starting the interface.
14
15 According to bug 253925 , this would only work for certain hardware
16 (ie, those that support the IFF_RUNNING method); ifplugd suppots three
17 methods (IFF_RUNNING, ethtool-style, mii-style), and netplug -seems-
18 to do it by connecting at the netlink level to the interface and just
19 listening for traffic (as far as I can tell). So for link detection,
20 both ifplugd and netplug would be better than attempting to just use
21 dhcpcd, imo (not to mention the non-dhcp-based configs)..
22
23 (plus, since this is all for oldnet only, i would expect dhcpcd would
24 be a bit of an issue to integrate so that it would be able to move
25 net.* from inactive to started state and then exclude it from being
26 run a second time to configure the now-up iface..)
27
28
29 -----BEGIN PGP SIGNATURE-----
30 Version: GnuPG v2.0.19 (GNU/Linux)
31
32 iF4EAREIAAYFAlBPOVcACgkQ2ugaI38ACPBevgD+LN73S/g6aQ8D2sR4rrIjNkSd
33 3eP1KgcGoEFeU+yPFIcA/RyC/fShiEaLiATnxN0ybymqspMQQcSrLj4GxeMqnPfs
34 =jpCo
35 -----END PGP SIGNATURE-----