+ r = sd_rtnl_message_addr_get_flags(addr, &flags);
+ if (r < 0)
+ _exit(EXIT_FAILURE);
+
+ if (flags & IFA_F_DEPRECATED)
+ continue;
+
+ r = sd_rtnl_message_addr_get_scope(addr, &scope);
+ if (r < 0)
+ _exit(EXIT_FAILURE);
+
+ if (scope == RT_SCOPE_HOST || scope == RT_SCOPE_NOWHERE)
+ continue;
+