summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLubomir Rintel <lkundrak@v3.sk>2015-06-01 17:28:13 +0000
committerLubomir Rintel <lkundrak@v3.sk>2015-06-01 17:30:24 +0000
commit36f7669a4c7799de4bbff4965437df829040a07e (patch)
tree5756e14de0cdbe438f11302859fc81127c32d3c7
parentef295ddeef6bb872d0487578f431b378e9473a91 (diff)
downloadNetworkManager-36f7669a4c7799de4bbff4965437df829040a07e.tar.gz
core: don't assume the loopback interface is called "lo"
I did a "ip link set lo name yolo" and now my NetworkManager triggers an assertion failure. :( Nevertheless, the loopback interface is always ifindex=1.
-rw-r--r--src/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index 49f0cd1d33..b9ab906f0f 100644
--- a/src/main.c
+++ b/src/main.c
@@ -477,7 +477,7 @@ main (int argc, char *argv[])
* physical interfaces.
*/
nm_log_dbg (LOGD_CORE, "setting up local loopback");
- nm_platform_link_set_up (NM_PLATFORM_GET, nm_platform_link_get_ifindex (NM_PLATFORM_GET, "lo"));
+ nm_platform_link_set_up (NM_PLATFORM_GET, 1);
success = TRUE;