This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/4958] New: IPv6 doesn't bind as the default protocol


After some more testing on Mandriva 2006 and 2007 I find that in both Mandriva
2007.0 and
2007.1 refuse to use IPv6 protocol as the default before using IPv4.

For instance, when I am using Mandriva 2007.x, if I goto
http://www.join.uni-muenster.de
and scroll to the bottom I will see my IPv4 address. Going to the same address
in 2006 I see my IPv6 address.

Using Mandriva 2007.x and going to http://www.ipv6.uni-muenster.de/ forces the IPv6
protocol to be used since there is no IPv4 for www.ipv6.uni-muenster.de

Using any version of Mandriva 2006 and below handles the IPv6 protocol
correctly.

Proof of concept.......

$ host www.join.uni-muenster.de
www.join.uni-muenster.de is an alias for tolot.join.uni-muenster.de.
tolot.join.uni-muenster.de has address 128.176.191.6
www.join.uni-muenster.de is an alias for tolot.join.uni-muenster.de.
tolot.join.uni-muenster.de has IPv6 address 2001:638:500:101:2e0:81ff:fe24:37c6
www.join.uni-muenster.de is an alias for tolot.join.uni-muenster.de.

$ host www.ipv6.uni-muenster.de
www.ipv6.uni-muenster.de is an alias for tolot.ipv6.uni-muenster.de.
www.ipv6.uni-muenster.de is an alias for tolot.ipv6.uni-muenster.de.
tolot.ipv6.uni-muenster.de has IPv6 address 2001:638:500:101:2e0:81ff:fe24:37c6
www.ipv6.uni-muenster.de is an alias for tolot.ipv6.uni-muenster.de.

www.join.uni-muenster.de has _BOTH_ IPv6/4 and IPv6 should take precedence over
any IPv4 connection as its been that way since the birth of the IPv6 protocol.
If I am not mistaken I do believe that the way it is working now violates the
RFC for IPv6 handling.

-------

A fix was found, see http://qa.mandriva.com/show_bug.cgi?id=30605#c10

It seems the binding problem result from a change in glibc.

A workaround is to create this file :

$ cat  /etc/gai.conf
label  ::1/128       0
label  ::/0          1
label  2002::/16     2
label ::/96          3
label ::ffff:0:0/96  4
precedence  ::1/128       50
precedence  ::/0          40
precedence  2002::/16     30
precedence ::/96          20
precedence ::ffff:0:0/96  10

With this, binding will be on ipv6 by default.

*** NOTE *** As the original bug reporter I have no idea if this was a Glibc
error from a upstream patch or if this was a error in compiling the RPM for
Mandriva. I only created this bug report to track down the issue and determine
where exactly IPv6 binding broke at.

If this bug is not present in your testing then it must be within the Mandriva
RPM build process. Please let me know.

A bug report was made for Mandriva, see http://qa.mandriva.com/show_bug.cgi?id=32787

-- 
           Summary: IPv6 doesn't bind as the default protocol
           Product: glibc
           Version: 2.4
            Status: NEW
          Severity: normal
          Priority: P2
         Component: libc
        AssignedTo: drepper at redhat dot com
        ReportedBy: sgrayban at gmail dot com
                CC: glibc-bugs at sources dot redhat dot com


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

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]