ip: print dadfailed flag
authorKaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>
Mon, 31 Dec 2018 17:52:32 +0000 (19:52 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Fri, 4 Jan 2019 18:00:23 +0000 (19:00 +0100)
Signed-off-by: Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
networking/libiproute/ipaddress.c

index 9ec665b691d12a9ca17abfc2d1ad048d9cf74d68..d088caf4c4caf2872c94f0986c42096fc20088cf 100644 (file)
@@ -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 ");