network: use SETLINK to bring up interfaces

This commit is contained in:
Tom Gundersen
2013-12-16 17:28:19 +01:00
parent 0a0dc69b65
commit 0f49a5f751
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -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;