mirror of
https://github.com/systemd/systemd.git
synced 2025-01-25 10:04:04 +03:00
local-addresses: set ifindex when dump addresses on an interface
This commit is contained in:
parent
c31298be7a
commit
6a28b78f2e
@ -79,7 +79,7 @@ int local_addresses(
|
|||||||
return r;
|
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)
|
if (r < 0)
|
||||||
return r;
|
return r;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user