Ignore loopback devices from IP configuration
authorMarcel Holtmann <marcel@holtmann.org>
Mon, 31 Aug 2009 20:10:53 +0000 (13:10 -0700)
committerMarcel Holtmann <marcel@holtmann.org>
Mon, 31 Aug 2009 20:10:53 +0000 (13:10 -0700)
src/ipconfig.c

index 2f5d521..edbdb3e 100644 (file)
@@ -295,6 +295,9 @@ void __connman_ipconfig_newlink(int index, unsigned short type,
 
        DBG("index %d", index);
 
+       if (type == ARPHRD_LOOPBACK)
+               return;
+
        ipdevice = g_hash_table_lookup(ipdevice_hash, GINT_TO_POINTER(index));
        if (ipdevice != NULL)
                goto update;