(IFA_F_OPTIMISTIC): Define to zero if not defined.
authordrepper <drepper>
Wed, 29 Aug 2007 16:49:45 +0000 (16:49 +0000)
committerdrepper <drepper>
Wed, 29 Aug 2007 16:49:45 +0000 (16:49 +0000)
(make_request): Recognize optimistic addresses and treat them like
deprecated addresses.

sysdeps/unix/sysv/linux/check_pf.c

index 4c222f1..df7cbb1 100644 (file)
@@ -41,6 +41,9 @@
 #ifndef IFA_F_HOMEADDRESS
 # define IFA_F_HOMEADDRESS 0
 #endif
+#ifndef IFA_F_OPTIMISTIC
+# define IFA_F_OPTIMISTIC 0
+#endif
 
 
 static int
@@ -203,10 +206,13 @@ make_request (int fd, pid_t pid, bool *seen_ipv4, bool *seen_ipv6,
 
                  if (ifam->ifa_flags & (IFA_F_DEPRECATED
                                         | IFA_F_TEMPORARY
-                                        | IFA_F_HOMEADDRESS))
+                                        | IFA_F_HOMEADDRESS
+                                        | IFA_F_OPTIMISTIC))
                    {
                      struct in6ailist *newp = alloca (sizeof (*newp));
-                     newp->info.flags = (((ifam->ifa_flags & IFA_F_DEPRECATED)
+                     newp->info.flags = (((ifam->ifa_flags
+                                           & (IFA_F_DEPRECATED
+                                              | IFA_F_OPTIMISTIC))
                                           ? in6ai_deprecated : 0)
                                          | ((ifam->ifa_flags
                                              & IFA_F_TEMPORARY)