Bug 240749
Summary: | Unnecessary IPv6 lookups. | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | David Woodhouse <dwmw2> |
Component: | glibc | Assignee: | Jakub Jelinek <jakub> |
Status: | CLOSED RAWHIDE | QA Contact: | Brian Brock <bbrock> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | rawhide | CC: | drepper |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2007-09-22 16:35:38 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
David Woodhouse
2007-05-21 13:17:46 UTC
What options were passed to getaddrinfo? Er, dunno. That was just 'telnet www.cam.ac.uk 80'. ltrace seems... unenlightening: shinybook /shiny/git/olpc-combine $ ltrace -o foo telnet pentafluge.infradead.org 80 WARNING: Using e_entry from elf header (0x5920) for address of "_start" Trying 213.146.154.40... Connected to pentafluge.infradead.org. Escape character is '^]'. ^]close telnet> close Connection closed. shinybook /shiny/git/olpc-combine $ cat foo unexpected breakpoint at 0x30016be4 +++ exited (status 0) +++ How can getaddrinfo avoid the IPv6 lookup if there is an IPv6 address? Even if it's link-local. Maybe the name is for a link-local interface. We don't know until we try to resolve it. Correct me if I'm wrong, but connecting to a link-local interface is similar to using 127.0.0.1 which is a legitimate use. Hm, yes and no. A link-local interface is really link-local. It isn't like '127.0.0.1'. You can't use it unless you also specify the interface. It can't be represented in DNS. But we _do_ have a 'localhost' address (::1) on the 'lo' device which I had forgotten about -- and which _is_ possible to represent in DNS. So you're right that we should probably be doing the AAAA lookup anyway. Current CVS glibc ignores the loopback addresses, since BZ#4599 patch. I fixed the one issue which the spec said (see comment #5). What else do you think is wrong? No reply, assuming it is fixed. If not, please reopen with additional info. |