diff --git a/src/shared/local-addresses.c b/src/shared/local-addresses.c index 29ab9241e91..bd69e946f55 100644 --- a/src/shared/local-addresses.c +++ b/src/shared/local-addresses.c @@ -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;