<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>102209</bug_id>
          
          <creation_ts>2005-08-12 02:16 0000</creation_ts>
          <short_desc>wget always prefers IPv4 by default</short_desc>
          <delta_ts>2005-09-12 14:32:35 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Applications</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>minor</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>bugzilla.gentoo.simon@arlott.org</reporter>
          <assigned_to>seemant@gentoo.org</assigned_to>
          <cc>jakub@gentoo.org</cc>
    
    <cc>radek@podgorny.cz</cc>

      

      
          <long_desc isprivate="0">
            <who>bugzilla.gentoo.simon@arlott.org</who>
            <bug_when>2005-08-12 02:16:39 0000</bug_when>
            <thetext>wget(1):
       --prefer-family=IPv4/IPv6/none
           When given a choice of several addresses, connect to the addresses
           with specified address family first.  IPv4 addresses are preferred
           by default.


Reproducible: Always
Steps to Reproduce:
1. wget
http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/distfiles/linux-2.6.12.tar.bz2


Actual Results:  
Resolving ftp.belnet.be... 193.190.198.20, 2001:6a8:3c80:0:203:baff:fe39:f931
Connecting to ftp.belnet.be|193.190.198.20|:80... connected.


Expected Results:  
Resolving ftp.belnet.be...
2001:6a8:3c80:0:203:baff:fe39:f931, 193.190.198.20
Connecting to ftp.belnet.be|2001:6a8:3c80:0:203:baff:fe39:f931|:80... connected.


When the USE flag &apos;ipv6&apos; is enabled, the following line should be added to
/etc/wget/wgetrc:

prefer_family = IPv6</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jakub@gentoo.org</who>
            <bug_when>2005-08-12 02:22:34 0000</bug_when>
            <thetext>(In reply to comment #0)
&gt; When the USE flag &apos;ipv6&apos; is enabled, the following line should be added to
&gt; /etc/wget/wgetrc:
&gt; 
&gt; prefer_family = IPv6

Uh, that would make quite a couple of people angry, ipv6 use flags is enabled
*by default* in most profiles while most people don&apos;t have IPv6 connectivity at
all. I  vote for WONTFIX unless ipv6 is removed from make.defaults.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>bugzilla.gentoo.simon@arlott.org</who>
            <bug_when>2005-08-12 02:37:36 0000</bug_when>
            <thetext>Preferring IPv6 does not break IPv4 connections, and this would only have an
effect for services available over IPv6 as well as IPv4.

Example with ::/0 default route via eth0 (I have no idea why the Linux kernel
does this on startup):
Resolving ftp.belnet.be... 2001:6a8:3c80:0:203:baff:fe39:f931, 193.190.198.20
Connecting to ftp.belnet.be|2001:6a8:3c80:0:203:baff:fe39:f931|:80... failed:
Cannot assign requested address.
Connecting to ftp.belnet.be|193.190.198.20|:80... connected.

Example with unreachable ::/0 route:
Resolving ftp.belnet.be... 2001:6a8:3c80:0:203:baff:fe39:f931, 193.190.198.20
Connecting to ftp.belnet.be|2001:6a8:3c80:0:203:baff:fe39:f931|:80... failed:
Network is unreachable.
Connecting to ftp.belnet.be|193.190.198.20|:80... connected.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jakub@gentoo.org</who>
            <bug_when>2005-08-12 02:44:50 0000</bug_when>
            <thetext>(In reply to comment #2)

&gt; Resolving ftp.belnet.be... 2001:6a8:3c80:0:203:baff:fe39:f931, 193.190.198.20
&gt; Connecting to ftp.belnet.be|2001:6a8:3c80:0:203:baff:fe39:f931|:80... failed:
&gt; Network is unreachable.
&gt; Connecting to ftp.belnet.be|193.190.198.20|:80... connected.

Yes, that&apos;s what I&apos;m talking about, resolving IPv6 address on IPv4 connection
would make people confused and angry. IPv6 users can easily set that themselves,
but this is IMHO a really bad default for all users (again, ipv6 is default use
flag in Gentoo).</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>bugzilla.gentoo.simon@arlott.org</who>
            <bug_when>2005-08-12 03:07:35 0000</bug_when>
            <thetext>(In reply to comment #3)
&gt; Yes, that&apos;s what I&apos;m talking about, resolving IPv6 address on IPv4 connection
&gt; would make people confused and angry. IPv6 users can easily set that themselves,
&gt; but this is IMHO a really bad default for all users (again, ipv6 is default use
&gt; flag in Gentoo).

Maybe the ebuild needs to display a warning that people are easily confused and
that IPv6 support needs to be enabled manually despite the use flag already
being enabled?

</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>radek@podgorny.cz</who>
            <bug_when>2005-08-12 16:32:52 0000</bug_when>
            <thetext>Just remember, ipv6 can only be spread by being used... :-)
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>seemant@gentoo.org</who>
            <bug_when>2005-09-12 14:32:35 0000</bug_when>
            <thetext>I added a comment in the wgetrc file about this.  Please remerge to see.

</thetext>
          </long_desc>
      
    </bug>

</bugzilla>