[Bug libc/9981] New: getaddrinfo prefers listening on ipv4-only over ipv4+ipv6

View: New views
5 Messages — Rating Filter:   Alert me  

[Bug libc/9981] New: getaddrinfo prefers listening on ipv4-only over ipv4+ipv6

by Bugzilla from sourceware-bugzilla@sourceware.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

The current getaddrinfo code prefers listening on ipv4-only instead of
ipv4+ipv6 as previously. The gaitest.c file demonstrates the problem.

On a machine with both ipv4 and ipv6 connectivity, it returns:
        * ipv4 (only)
        * ipv6+ipv4

Listening for ipv6 connections never hurts, even if no one will ever
reach the server via ipv6.

--
           Summary: getaddrinfo prefers listening on ipv4-only over
                    ipv4+ipv6
           Product: glibc
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: libc
        AssignedTo: drepper at redhat dot com
        ReportedBy: aurelien at aurel32 dot net
                CC: glibc-bugs at sources dot redhat dot com
 GCC build triplet: x86_64-unknown-linux-gnu
  GCC host triplet: x86_64-unknown-linux-gnu
GCC target triplet: x86_64-unknown-linux-gnu


http://sourceware.org/bugzilla/show_bug.cgi?id=9981

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.

[Bug libc/9981] getaddrinfo prefers listening on ipv4-only over ipv4+ipv6

by Bugzilla from sourceware-bugzilla@sourceware.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


------- Additional Comments From aurelien at aurel32 dot net  2009-03-22 23:29 -------
Created an attachment (id=3835)
 --> (http://sourceware.org/bugzilla/attachment.cgi?id=3835&action=view)
test program


--


http://sourceware.org/bugzilla/show_bug.cgi?id=9981

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.

[Bug libc/9981] getaddrinfo prefers listening on ipv4-only over ipv4+ipv6

by Bugzilla from sourceware-bugzilla@sourceware.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


------- Additional Comments From aurelien at aurel32 dot net  2009-05-01 09:57 -------
I have just done a test build on the current CVS, and the bug is still present.

--


http://sourceware.org/bugzilla/show_bug.cgi?id=9981

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.

[Bug libc/9981] getaddrinfo prefers listening on ipv4-only over ipv4+ipv6

by Bugzilla from sourceware-bugzilla@sourceware.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


------- Additional Comments From aurelien at aurel32 dot net  2009-05-01 10:47 -------
The sort ipv4 and then ipv6 is done by rule 5, when matching the label.

It seems this rule should be ignored when dealing with wildcard addresses.
Maybe got_source_addr should not be set to true for wildcard addresses.

--


http://sourceware.org/bugzilla/show_bug.cgi?id=9981

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.

[Bug libc/9981] getaddrinfo prefers listening on ipv4-only over ipv4+ipv6

by Bugzilla from sourceware-bugzilla@sourceware.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message



--
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bugzilla dot sourceware dot
                   |                            |simon at arlott dot org


http://sourceware.org/bugzilla/show_bug.cgi?id=9981

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.