summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2013-12-16 14:37:51 +0100
committerTom Gundersen <teg@jklm.no>2013-12-16 17:28:19 +0100
commit0f49a5f75185bb358ee142f3c1c9f029a588435b (patch)
treecf67f415608fb29c8528c3bcde6ea4fa8785040d /src
parent0a0dc69b655cfb10cab39133f5d521e7b35ce3d5 (diff)
network: use SETLINK to bring up interfaces
Diffstat (limited to 'src')
-rw-r--r--src/core/loopback-setup.c2
-rw-r--r--src/network/networkd-link.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/core/loopback-setup.c b/src/core/loopback-setup.c
index 1999959946..a1b3847704 100644
--- a/src/core/loopback-setup.c
+++ b/src/core/loopback-setup.c
@@ -89,7 +89,7 @@ static int start_interface(sd_rtnl *rtnl, int if_loopback, struct in_addr *ipv4_
_cleanup_sd_rtnl_message_unref_ sd_rtnl_message *req = NULL;
int r;
- r = sd_rtnl_message_link_new(RTM_NEWLINK, if_loopback, &req);
+ r = sd_rtnl_message_link_new(RTM_SETLINK, if_loopback, &req);
if (r < 0)
return r;
diff --git a/src/network/networkd-link.c b/src/network/networkd-link.c
index 16255f9227..7684d65f40 100644
--- a/src/network/networkd-link.c
+++ b/src/network/networkd-link.c
@@ -301,9 +301,9 @@ static int link_up(Link *link) {
assert(link->manager);
assert(link->manager->rtnl);
- r = sd_rtnl_message_link_new(RTM_NEWLINK, link->ifindex, &req);
+ r = sd_rtnl_message_link_new(RTM_SETLINK, link->ifindex, &req);
if (r < 0) {
- log_error("Could not allocate RTM_NEWLINK message");
+ log_error("Could not allocate RTM_SETLINK message");
return r;
}