From: Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>
Date: Mon, 31 Dec 2018 17:52:32 +0000 (+0200)
Subject: ip: print dadfailed flag
X-Git-Tag: 1_31_0~231
X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=1c952ba2060780fce830d427420b9d819f08880e;p=oweals%2Fbusybox.git

ip: print dadfailed flag

Signed-off-by: Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
---

diff --git a/networking/libiproute/ipaddress.c b/networking/libiproute/ipaddress.c
index 9ec665b69..d088caf4c 100644
--- a/networking/libiproute/ipaddress.c
+++ b/networking/libiproute/ipaddress.c
@@ -327,6 +327,10 @@ static int FAST_FUNC print_addrinfo(const struct sockaddr_nl *who UNUSED_PARAM,
 		ifa->ifa_flags &= ~IFA_F_TENTATIVE;
 		printf("tentative ");
 	}
+	if (ifa->ifa_flags & IFA_F_DADFAILED) {
+		ifa->ifa_flags &= ~IFA_F_DADFAILED;
+		printf("dadfailed ");
+	}
 	if (ifa->ifa_flags & IFA_F_DEPRECATED) {
 		ifa->ifa_flags &= ~IFA_F_DEPRECATED;
 		printf("deprecated ");