Resolve alternative ifnames wherever we would resolve an interface name

To keep the names manageable, "ifname_or_ifindex" is replaced by "interface".
This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2020-01-12 11:24:35 +01:00
parent fc2ea97ad0
commit d308bb99d2
9 changed files with 47 additions and 58 deletions
+2
View File
@@ -191,6 +191,8 @@ int rtnl_resolve_link_alternative_name(sd_netlink **rtnl, const char *name) {
return r;
r = sd_netlink_call(*rtnl, message, 0, &reply);
if (r == -EINVAL)
return -ENODEV; /* The device doesn't exist */
if (r < 0)
return r;