From 5ae841202408184dff40e0bb26ad80cb4f41c5fd Mon Sep 17 00:00:00 2001 From: "Joseph C. Lehner" Date: Tue, 11 Oct 2022 17:28:51 +0200 Subject: [PATCH] Windows: don't fail if IP address is marked as tentative --- ethsock.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ethsock.c b/ethsock.c index fd4dcfe..6a8321e 100644 --- a/ethsock.c +++ b/ethsock.c @@ -1190,6 +1190,8 @@ static int ethsock_ip_add_del(struct ethsock *sock, uint32_t ipaddr, uint32_t ip if (row.DadState == IpDadStateDeprecated) { fprintf(stderr, "Warning: IP address marked as deprecated.\n"); + } else if (row.DadState == IpDadStateTentative) { + fprintf(stderr, "Warning: IP address marked as tentative.\n"); } else if (row.DadState != IpDadStatePreferred) { fprintf(stderr, "Failed to add IP address (state=%d).\n", row.DadState); goto out;