1
0
mirror of https://github.com/systemd/systemd.git synced 2025-01-12 13:18:14 +03:00

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

This commit is contained in:
Yu Watanabe 2021-05-25 06:54:15 +09:00
parent c31298be7a
commit 6a28b78f2e

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;