]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
* sysdeps/unix/sysv/linux/check_pf.c (IFA_F_OPTIMISTIC): Define to
authorUlrich Drepper <drepper@redhat.com>
Wed, 29 Aug 2007 16:50:11 +0000 (16:50 +0000)
committerUlrich Drepper <drepper@redhat.com>
Wed, 29 Aug 2007 16:50:11 +0000 (16:50 +0000)
zero if not defined.
(make_request): Recognize optimistic addresses and treat them like
deprecated addresses.
Reported by Neil Horman <nhorman@redhat.com>.

ChangeLog
sysdeps/unix/sysv/linux/check_pf.c

index 8905b5d1e737f7d6ec510ed6db79fac7e1a1304b..b0de021b79e7463e24df0a9b6530486db2a22d7d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2007-08-29  Ulrich Drepper  <drepper@redhat.com>
+
+       * sysdeps/unix/sysv/linux/check_pf.c (IFA_F_OPTIMISTIC): Define to
+       zero if not defined.
+       (make_request): Recognize optimistic addresses and treat them like
+       deprecated addresses.
+       Reported by Neil Horman <nhorman@redhat.com>.
+
 2007-08-28  Ulrich Drepper  <drepper@redhat.com>
 
        * nscd/connections.c (send_ro_fd): Also transfer file size.
index 4c222f10d95df0cbc238ee10fabb6056d4ac6e8c..df7cbb18974ebfe22f20e66ed586a9f7ebe8c79e 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)