From 6a28b78f2ef0dc04a409b81ed7006f47071424a2 Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Tue, 25 May 2021 06:54:15 +0900 Subject: [PATCH] local-addresses: set ifindex when dump addresses on an interface --- src/shared/local-addresses.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;