IPv4 addresses come sorted before IPv6 ones if you ask libc in teredo environment.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
eglibc (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
In Teredo case IPv4 addresses come sorted before the IPv6 ones (in contrast to native environment) if you
ask libc.
Results of getaddr1 and getaddr2 (both included as source and Debian/Ubuntu binary):
Native:
getaddr1 localhost
::1
127.0.0.1
getaddr2 localhost
::1
127.0.0.1
getaddr1 ip6.me
2001:4810::110
66.117.47.214
getaddr2 ip6.me
2001:4810::110
66.117.47.214
Teredo:
getaddr1 localhost
::1
127.0.0.1
getaddr2 localhost
::1
127.0.0.1
getaddr1 ip6.me
66.117.47.214
2001:4810::110
getaddr2 ip6.me
66.117.47.214
2001:4810::110
ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: libc-bin 2.11.1-0ubuntu7
ProcVersionSign
Uname: Linux 2.6.32-22-generic i686
NonfreeKernelMo
Architecture: i386
Date: Sat May 22 17:15:32 2010
Dependencies:
InstallationMedia: Ubuntu 9.10 "Karmic Koala" - Release i386 (20091028.5)
ProcEnviron:
LANGUAGE=en
LANG=en_US.utf8
SHELL=/bin/bash
SourcePackage: eglibc
Yes, this is intentional behaviour, teredo addresses have lower reliability than native v6 mechanisms and in general lower than ipv4, so it makes sense to give them lower priority too.