loopback: Recover Loopback on Setup when Up but No Address
authorGrant Erickson <marathon96@gmail.com>
Fri, 15 Jul 2011 17:21:34 +0000 (10:21 -0700)
committerMarcel Holtmann <marcel@holtmann.org>
Fri, 15 Jul 2011 20:33:54 +0000 (22:33 +0200)
commit70580a5b75b19b97aaf801af27e6bda2a78ab58c
treee82b694ad9897ce65d0f3f93244a2a1fe6810c03
parented074699bb0a55a26e9cccd3e42285fba2107cb7
loopback: Recover Loopback on Setup when Up but No Address

It is possible to end up in situations in which the loopback interface
is up but has no valid address. In that case, we expect SIOCGIFADDR
will return EADDRNOTAVAIL and valid_loopback should return FALSE such
that connman can add a loopback address back to the interface.

This is a partial fix for bug 21001
<https://bugs.meego.com/show_bug.cgi?id=21001>.
plugins/loopback.c