[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[SCM] GNU Inetutils branch, master, updated. inetutils-1_9_4-62-ga055c4
From: |
Mats Erik Andersson |
Subject: |
[SCM] GNU Inetutils branch, master, updated. inetutils-1_9_4-62-ga055c4b |
Date: |
Wed, 22 Jan 2020 10:46:52 -0500 (EST) |
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU Inetutils ".
The branch, master has been updated
via a055c4b83cd22914c4d5e2d8c1aa4ba57fa9fdf9 (commit)
from 3c908f3420ac0e29edcf7511fbc5665960cc7124 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://git.savannah.gnu.org/cgit/inetutils.git/commit/?id=a055c4b83cd22914c4d5e2d8c1aa4ba57fa9fdf9
commit a055c4b83cd22914c4d5e2d8c1aa4ba57fa9fdf9
Author: Mats Erik Andersson <address@hidden>
Date: Wed Jan 22 16:45:10 2020 +0100
Correctly detect presence of IPv6.
diff --git a/ChangeLog b/ChangeLog
index 6eaeecb..8a9223d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2020-01-22 Mats Erik Andersson <address@hidden>
+
+ Correctly detect presence of IPv6.
+
+ * tests/runtime-ipv6.c [AI_ADDRCONFIG] (hints.ai_flags):
+ Add AI_ADDRCONFIG for better selectivity.
+
2020-01-20 Mats Erik Andersson <address@hidden>
Test robustly in absence of IPv6.
diff --git a/tests/runtime-ipv6.c b/tests/runtime-ipv6.c
index 17d399a..58a2fb3 100644
--- a/tests/runtime-ipv6.c
+++ b/tests/runtime-ipv6.c
@@ -55,9 +55,12 @@ main (int argc, char *argv[])
set_program_name (argv[0]);
memset (&hints, 0, sizeof (hints));
- hints.ai_family = PF_INET6;
+ hints.ai_family = AF_INET6;
hints.ai_socktype = SOCK_DGRAM;
hints.ai_flags = AI_NUMERICHOST;
+#ifdef AI_ADDRCONFIG
+ hints.ai_flags |= AI_ADDRCONFIG;
+#endif
err = getaddrinfo ("::1", "tftp", &hints, &aiptr);
if (!err)
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 7 +++++++
tests/runtime-ipv6.c | 5 ++++-
2 files changed, 11 insertions(+), 1 deletion(-)
hooks/post-receive
--
GNU Inetutils
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [SCM] GNU Inetutils branch, master, updated. inetutils-1_9_4-62-ga055c4b,
Mats Erik Andersson <=