From 36f7669a4c7799de4bbff4965437df829040a07e Mon Sep 17 00:00:00 2001 From: Lubomir Rintel Date: Mon, 1 Jun 2015 17:28:13 +0000 Subject: [PATCH] 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. --- src/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;