[PATCH 3/6] netconfig: Set .v6_configured when we set an address

Andrew Zaborowski <[email protected]>
Newsgroups dev.linux.lists.ell
Message-ID <[email protected]>
The DNS getters won't work without this as they return NULL if
.v6_configured is false.

Fixes: 6adf0f5db455 ("netconfig: Create SLAAC address")
---
 ell/netconfig.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/ell/netconfig.c b/ell/netconfig.c
index 7a9ee89..e5c7b51 100644
--- a/ell/netconfig.c
+++ b/ell/netconfig.c
@@ -750,6 +750,7 @@ static void netconfig_add_slaac_address(struct l_netconfig *nc,
 
 	l_queue_push_tail(nc->addresses.current, nc->v6_address);
 	l_queue_push_tail(nc->addresses.added, nc->v6_address);
+	nc->v6_configured = true;
 	netconfig_emit_event(nc, AF_INET6, L_NETCONFIG_EVENT_CONFIGURE);
 
 	/* TODO: set a renew timeout */
-- 
2.34.1
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.