This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/12095] New: getifaddrs() returns no IP address for ppp0
- From: "thomas.jarosch at intra2net dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: Tue, 5 Oct 2010 15:40:12 +0000
- Subject: [Bug libc/12095] New: getifaddrs() returns no IP address for ppp0
- Auto-submitted: auto-generated
http://sourceware.org/bugzilla/show_bug.cgi?id=12095
Summary: getifaddrs() returns no IP address for ppp0
Product: glibc
Version: 2.11
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: libc
AssignedTo: drepper.fsp@gmail.com
ReportedBy: thomas.jarosch@intra2net.com
Hello,
getifaddrs() doesn't return any IP address for a ppp device. Here's
the corresponding gdb output (during ifa_addr NULL pointer access):
(gdb) print ifa->ifa_flags
$1 = 69841
(gdb) print ifa->ifa_addr
$2 = (sockaddr *) 0x0
(gdb) print ifa->ifa_ifu
$3 = {ifu_broadaddr = 0x0, ifu_dstaddr = 0x0}
(gdb) print ifa->ifa_data
$4 = (void *) 0x8166e7c
(gdb) print ifa->ifa_name
$5 = 0x8166a88 "ppp0"
(gdb) print ifa->ifa_netmask
$6 = (sockaddr *) 0x0
(gdb) print ifa->ifa_ifu
$7 = {ifu_broadaddr = 0x0, ifu_dstaddr = 0x0}
If I run the "ip addr" command from the "iproute" package,
I see the following output:
11: ppp0: <POINTOPOINT,MULTICAST,NOARP,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast
state UNKNOWN qlen 3
link/ppp
inet 212.144.74.201 peer 145.253.1.55/32 scope global ppp0
As "ip addr" also uses the netlink interface to retrieve the information,
I suspect this is a problem inside the getifaddrs() implementation.
My glibc version is 2.11.2+Fedora patches from Fedora 12.
A diff between sysdeps/unix/sysv/linux/ifaddrs.c from git HEAD
and the version shipped in Fedora 12 showed no differences.
Kernel version is 2.6.34.7.
Please let me know how I can help to track this down.
Cheers,
Thomas
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.