summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2009-08-31 13:10:53 -0700
committerMarcel Holtmann <marcel@holtmann.org>2009-08-31 13:10:53 -0700
commit832ea80a27c229b6a916b894fb67fb933a3ee90e (patch)
tree5d70f48a12c649e06d2c8e165c32526f5f2cce62
parent6b16b6051eeaed82cfe2b69be03d6ba1f4cdc156 (diff)
downloadconnman-832ea80a27c229b6a916b894fb67fb933a3ee90e.tar.gz
connman-832ea80a27c229b6a916b894fb67fb933a3ee90e.tar.bz2
connman-832ea80a27c229b6a916b894fb67fb933a3ee90e.zip
Ignore loopback devices from IP configuration
-rw-r--r--src/ipconfig.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ipconfig.c b/src/ipconfig.c
index 2f5d5211..edbdb3e1 100644
--- a/src/ipconfig.c
+++ b/src/ipconfig.c
@@ -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;