[exim-cvs] Fix GNU Hurd interface IPv6 address detection.

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Exim Git Commits Mailing List
Dátum:  
Címzett: exim-cvs
Tárgy: [exim-cvs] Fix GNU Hurd interface IPv6 address detection.
Gitweb: http://git.exim.org/exim.git/commitdiff/6f5a440ab65a2ec977db14ec69698068aed98935
Commit:     6f5a440ab65a2ec977db14ec69698068aed98935
Parent:     94eaf700d71d8bf9a45617c0323fa66fc148aab2
Author:     Phil Pennock <pdp@???>
AuthorDate: Mon Jan 14 14:05:25 2013 -0500
Committer:  Phil Pennock <pdp@???>
CommitDate: Mon Jan 14 14:05:25 2013 -0500


    Fix GNU Hurd interface IPv6 address detection.


    Define SIOCGIFCONF_GIVES_ADDR in OS/os.h-GNU


    Fixes 1331.
---
 doc/doc-txt/ChangeLog |    4 ++++
 src/ACKNOWLEDGMENTS   |    1 +
 src/OS/os.Configuring |    2 +-
 src/OS/os.h-GNU       |    3 ++-
 4 files changed, 8 insertions(+), 2 deletions(-)


diff --git a/doc/doc-txt/ChangeLog b/doc/doc-txt/ChangeLog
index aa5adf1..924b0b8 100644
--- a/doc/doc-txt/ChangeLog
+++ b/doc/doc-txt/ChangeLog
@@ -150,6 +150,10 @@ PP/14 Fix OCSP reinitialisation in SNI handling for Exim/TLS as server.

JH/13 Add $router_name and $transport_name variables. Bugzilla 308.

+PP/15 Define SIOCGIFCONF_GIVES_ADDR for GNU Hurd.
+      Bug detection, analysis and fix by Samuel Thibault.
+      Bugzilla 1331, Debian bug #698092.
+


 Exim version 4.80.1
 -------------------
diff --git a/src/ACKNOWLEDGMENTS b/src/ACKNOWLEDGMENTS
index 404920e..ed005b3 100644
--- a/src/ACKNOWLEDGMENTS
+++ b/src/ACKNOWLEDGMENTS
@@ -440,6 +440,7 @@ Janne Snabb               TLS extensive debugging & failure root cause analysis
                           Added SPF record type support to dnsdb lookup
 Jan Srzednicki            Patch improving Dovecot authenticator
                           Reported crash in Dovecot authenticator
+Samuel Thibault           Patch fixing IPv6 interface address detection on Hurd
 Martin Tscholak           Reported issue with TLS anonymous ciphersuites
 Stephen Usher             Patch fixing use of Oracle's LDAP libraries on Solaris
 Holger Weiß               Patch leting ${run} return more data than OS pipe
diff --git a/src/OS/os.Configuring b/src/OS/os.Configuring
index b5e4677..465bc26 100644
--- a/src/OS/os.Configuring
+++ b/src/OS/os.Configuring
@@ -88,7 +88,7 @@ On some operating systems, the SIOCGIFCONF ioctl returns the IP addresses
 with the list of interfaces, and there is no need to call SIOCGIFADDR for each
 individual address. Mostly, making the second call does no harm, but on Linux
 when there are IP aliases, it causes things to go wrong. This also happens on
-BSDI. Therefore, there is now a macro to cut it out, called
+BSDI and GNU Hurd. Therefore, there is now a macro to cut it out, called
 SIOCGIFCONF_GIVES_ADDR.


Note that, if IPv6 support is configured, Exim cannot find the IPv6 addresses
diff --git a/src/OS/os.h-GNU b/src/OS/os.h-GNU
index 0f8a8d6..cc4da0e 100644
--- a/src/OS/os.h-GNU
+++ b/src/OS/os.h-GNU
@@ -2,11 +2,12 @@

#define CRYPT_H
#define GLIBC_IP_OPTIONS
-#define HAVE_MMAP
#define HAVE_BSD_GETLOADAVG
+#define HAVE_MMAP
#define HAVE_SYS_VFS_H
#define NO_IP_VAR_H
#define SIG_IGN_WORKS
+#define SIOCGIFCONF_GIVES_ADDR

 #define F_FREESP     O_TRUNC
 typedef struct flock flock_t;