local-addresses: set ifindex when dump addresses on an interface

This commit is contained in:
Yu Watanabe
2021-05-25 08:26:00 +09:00
parent c31298be7a
commit 6a28b78f2e
+1 -1
View File
@@ -79,7 +79,7 @@ int local_addresses(
return r;
}
r = sd_rtnl_message_new_addr(rtnl, &req, RTM_GETADDR, 0, af);
r = sd_rtnl_message_new_addr(rtnl, &req, RTM_GETADDR, ifindex, af);
if (r < 0)
return r;