Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 615840 Details for
Bug 808147
getaddrinfo("::1") now fails on an otherwise-ipv4-only system
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
TEMPORARY patch to ignore AI_ADDRCONFIG
glibc-ignore-addrconfig.patch (text/plain), 2.09 KB, created by
Pavel Šimerda (pavlix)
on 2012-09-22 15:11:26 UTC
(
hide
)
Description:
TEMPORARY patch to ignore AI_ADDRCONFIG
Filename:
MIME Type:
Creator:
Pavel Šimerda (pavlix)
Created:
2012-09-22 15:11:26 UTC
Size:
2.09 KB
patch
obsolete
>commit fee7d1688ad035e7ea246097e7cee9f0f8bef59b >Author: Pavel Å imerda <psimerda@redhat.com> >Date: Sat Sep 22 14:29:29 2012 +0200 > > EXPERIMENTAL: ignore AI_ADDRCONFIG in getaddrinfo() > > This should fix problems getaddrinfo() for non-global use cases. It > should now work for the following 'node' names even on hosts without > global IPv4 and/or IPv6. > > getaddrinfo("127.0.0.1", ...) > getaddrinfo("::1", ...) > getaddrinfo("localhost", ...) > getaddrinfo("localhost4", ...) > getaddrinfo("localhost6", ...) > getaddrinfo("fe80::44ab:6fff:fe75:4c04%eth0", ...) > > The price for this is losing AI_ADDRCONFIG funcionality. But this > funcionality should be only used for DNS. > >diff --git a/sysdeps/posix/getaddrinfo.c b/sysdeps/posix/getaddrinfo.c >index 05883bd..503f6a8 100644 >--- a/sysdeps/posix/getaddrinfo.c >+++ b/sysdeps/posix/getaddrinfo.c >@@ -2403,36 +2403,6 @@ getaddrinfo (const char *name, const char *service, > bool seen_ipv6 = false; > bool check_pf_called = false; > >- if (hints->ai_flags & AI_ADDRCONFIG) >- { >- /* We might need information about what interfaces are available. >- Also determine whether we have IPv4 or IPv6 interfaces or both. We >- cannot cache the results since new interfaces could be added at >- any time. */ >- __check_pf (&seen_ipv4, &seen_ipv6, &in6ai, &in6ailen); >- check_pf_called = true; >- >- /* Now make a decision on what we return, if anything. */ >- if (hints->ai_family == PF_UNSPEC && (seen_ipv4 || seen_ipv6)) >- { >- /* If we haven't seen both IPv4 and IPv6 interfaces we can >- narrow down the search. */ >- if ((! seen_ipv4 || ! seen_ipv6) && (seen_ipv4 || seen_ipv6)) >- { >- local_hints = *hints; >- local_hints.ai_family = seen_ipv4 ? PF_INET : PF_INET6; >- hints = &local_hints; >- } >- } >- else if ((hints->ai_family == PF_INET && ! seen_ipv4) >- || (hints->ai_family == PF_INET6 && ! seen_ipv6)) >- { >- /* We cannot possibly return a valid answer. */ >- __free_in6ai (in6ai); >- return EAI_NONAME; >- } >- } >- > if (service && service[0]) > { > char *c;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 808147
:
595983
|
595984
|
595985
|
595986
| 615840