chiark / gitweb /
networkd: wait for IFF_RUNNING rather than IFF_LOWER_UP
authorTom Gundersen <teg@jklm.no>
Sat, 12 Apr 2014 10:05:43 +0000 (12:05 +0200)
committerTom Gundersen <teg@jklm.no>
Sat, 12 Apr 2014 10:06:28 +0000 (12:06 +0200)
commitffba61663aa5f11b2066928d74c09f00e60e9e20
tree410a1b815b42d427a656c2bf1c7154b0df4e7e2e
parent730b3062088792ea0ad06655046d548be01a6d79
networkd: wait for IFF_RUNNING rather than IFF_LOWER_UP

The interface is not fully ready until it enterns RUNNING. This was causing
problems with sending out DHCP messages before the interface was ready, so they
would get lost. In particular this affected DHCP INIT-REBOOT, as it relies on
the first package sent being successful (or it will fall back to a full reboot).

Also improve the logging a lot, to make future debugging of link state a lot
easier.
src/network/networkd-link.c