]> git.meshlink.io Git - catta/blobdiff - avahi-core/iface-linux.c
iface: check for IFA_F_DEPRECATED
[catta] / avahi-core / iface-linux.c
index 2782697a368f73a48df940945e8163172345a183..a1b7f73ec48db314de2c718e5cc4ba58cab381fd 100644 (file)
@@ -238,6 +238,7 @@ static void netlink_callback(AvahiNetlink *nl, struct nlmsghdr *n, void* userdat
 
             /* Update the scope field for the address */
             addr->global_scope = ifaddrmsg->ifa_scope == RT_SCOPE_UNIVERSE || ifaddrmsg->ifa_scope == RT_SCOPE_SITE;
+            addr->deprecated = !!(ifaddrmsg->ifa_flags & IFA_F_DEPRECATED);
         } else {
             AvahiInterfaceAddress *addr;
             assert(n->nlmsg_type == RTM_DELADDR);