This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/10083] IPV6 getaddrinfo and AI_ADDRCONFIG
- From: "spam at messir dot net" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 21 Apr 2009 11:51:05 -0000
- Subject: [Bug libc/10083] IPV6 getaddrinfo and AI_ADDRCONFIG
- References: <20090419085937.10083.spam@messir.net>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From spam at messir dot net 2009-04-21 11:51 -------
Here two test cases with describe problem(I hope). glibc info: http://
dpaste.com/36218/
I'm afraid it could be ubuntu-specific bug. Unfortunally I can't check on
another distro (I'm surrounded by ubuntu and freebsd).
First test case:
===========
/tmp$ ./a.out
getaddrinfo: Address family for hostname not supported
$ ip addr show
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP
qlen 1000
link/ether 00:18:f3:02:2f:31 brd ff:ff:ff:ff:ff:ff
inet 192.168.0.42/24 brd 192.168.0.255 scope global eth0
inet6 fe80::218:f3ff:fe02:2f31/64 scope link
valid_lft forever preferred_lft forever
17: tun_exelap: <POINTOPOINT,MULTICAST,NOARP,UP,LOWER_UP> mtu 1500 qdisc
pfifo_fast state UNKNOWN qlen 100
link/[65534]
inet 172.16.1.20 peer 172.16.1.1/32 scope global tun_exelap
===========
Second case:
===========
/tmp$ sudo ip addr add 7777:7777:7777:7777:7777:7777:7777:7777/32 dev eth0
/tmp$ ./a.out
address resolved!
/tmp$ ip addr list
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP
qlen 1000
link/ether 00:18:f3:02:2f:31 brd ff:ff:ff:ff:ff:ff
inet 192.168.0.42/24 brd 192.168.0.255 scope global eth0
inet6 7777:7777:7777:7777:7777:7777:7777:7777/32 scope global
valid_lft forever preferred_lft forever
inet6 fe80::218:f3ff:fe02:2f31/64 scope link
valid_lft forever preferred_lft forever
17: tun_exelap: <POINTOPOINT,MULTICAST,NOARP,UP,LOWER_UP> mtu 1500 qdisc
pfifo_fast state UNKNOWN qlen 100
link/[65534]
inet 172.16.1.20 peer 172.16.1.1/32 scope global tun_exelap
===========
--
http://sourceware.org/bugzilla/show_bug.cgi?id=10083
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.