From 93409da4dc759cdd897203c5fbc2e95da5525f11 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. (cherry picked from commit 36f7669a4c7799de4bbff4965437df829040a07e) --- src/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.c b/src/main.c index 70449ae99b..0569c11a73 100644 --- a/src/main.c +++ b/src/main.c @@ -512,7 +512,7 @@ main (int argc, char *argv[]) * physical interfaces. */ nm_log_dbg (LOGD_CORE, "setting up local loopback"); - nm_platform_link_set_up (nm_platform_link_get_ifindex ("lo")); + nm_platform_link_set_up (1); success = TRUE;