Your message dated Mon, 23 Apr 2007 23:34:54 +0200 with message-id <20070423213454.GA4959@artemis> and subject line Bug#357152: linked list returned by getifaddrs() contains structures without any address data has caused the attached Bug report to be marked as done. This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the Bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what I am talking about this indicates a serious mail system misconfiguration somewhere. Please contact me immediately.) Debian bug tracking system administrator (administrator, Debian Bugs database)
--- Begin Message ---
- To: submit@bugs.debian.org
- Subject: linked list returned by getifaddrs() contains structures without any address data
- From: "Jan C. Nordholz" <jckn@gmx.net>
- Date: Wed, 15 Mar 2006 23:38:24 +0100
- Message-id: <20060315223823.GA25740@hejre.minidns.net>
- Reply-to: jckn@gmx.net
Package: libc6 Version: 2.3.6-2 This is the list getifaddrs() returns on my system (extracted with a short C snippet) - basic information from the contained sockaddr's printed (and some IPs hidden for privacy). Note the P2P interfaces: ] eth0 (flags 0x1043): Non-NULL? Addr Y Netmask - Dest/BCast Y ] [F 17] IFIndex 1 ] lo (flags 0x49): Non-NULL? Addr Y Netmask - Dest/BCast Y ] [F 17] IFIndex 2 ] eth1 (flags 0x1003): Non-NULL? Addr Y Netmask - Dest/BCast Y ] [F 17] IFIndex 3 ] sit0 (flags 0x80): Non-NULL? Addr Y Netmask - Dest/BCast Y ] [F 17] IFIndex 4 ] tap0 (flags 0x1043): Non-NULL? Addr Y Netmask - Dest/BCast Y ] [F 17] IFIndex 5 ] tap1 (flags 0x1043): Non-NULL? Addr Y Netmask - Dest/BCast Y ] [F 17] IFIndex 6 ] ppp0 (flags 0x10d1): Non-NULL? Addr - Netmask - Dest/BCast - ] ippp0 (flags 0xd1): Non-NULL? Addr - Netmask - Dest/BCast - ] lo (flags 0x49): Non-NULL? Addr Y Netmask Y Dest/BCast Y ] [F 2] Addr 0x0100007f ] Mask 0x000000ff ] eth1 (flags 0x1003): Non-NULL? Addr Y Netmask Y Dest/BCast Y ] [F 2] Addr 0x3d40a8c0 ] Mask 0x00ffffff ] tap0 (flags 0x1043): Non-NULL? Addr Y Netmask Y Dest/BCast Y ] [F 2] Addr 0x0120a8c0 ] Mask 0x00ffffff ] tap1 (flags 0x1043): Non-NULL? Addr Y Netmask Y Dest/BCast Y ] [F 2] Addr 0x0121a8c0 ] Mask 0x00ffffff ] ppp0 (flags 0x10d1): Non-NULL? Addr Y Netmask Y Dest/BCast Y ] [F 2] Addr 0x........ ] Mask 0xffffffff ] ippp0 (flags 0xd1): Non-NULL? Addr Y Netmask Y Dest/BCast Y ] [F 2] Addr 0x........ ] Mask 0xffffffff ] eth0 (flags 0x1043): Non-NULL? Addr Y Netmask Y Dest/BCast - ] [F 10] Addr fe80000000000000................ ] lo (flags 0x49): Non-NULL? Addr Y Netmask Y Dest/BCast - ] [F 10] Addr 00000000000000000000000000000001 ] tap0 (flags 0x1043): Non-NULL? Addr Y Netmask Y Dest/BCast - ] [F 10] Addr fe80000000000000709548fffeed901c ] tap1 (flags 0x1043): Non-NULL? Addr Y Netmask Y Dest/BCast - ] [F 10] Addr fe8000000000000070f756fffec1794f Although <ifaddrs.h> doesn't explicitly claim it, there is at least one program that relies on ifa_addr always being non-NULL (=> #356858); and it should be no problem to get those empty structures out of the list. If I find enough time, I'll try to submit a patch. Regards, Jan -- Jan C. Nordholz <jckn At gmx net>
--- End Message ---
--- Begin Message ---
- To: jckn@gmx.net, 357152-done@bugs.debian.org
- Subject: Re: Bug#357152: linked list returned by getifaddrs() contains structures without any address data
- From: Pierre HABOUZIT <madcoder@debian.org>
- Date: Mon, 23 Apr 2007 23:34:54 +0200
- Message-id: <20070423213454.GA4959@artemis>
- In-reply-to: <20060315223823.GA25740@hejre.minidns.net>
- References: <20060315223823.GA25740@hejre.minidns.net>
On Wed, Mar 15, 2006 at 11:38:24PM +0100, Jan C. Nordholz wrote: > Package: libc6 > Version: 2.3.6-2 > > This is the list getifaddrs() returns on my system (extracted > with a short C snippet) - basic information from the contained > sockaddr's printed (and some IPs hidden for privacy). Note the > P2P interfaces: > > ] eth0 (flags 0x1043): Non-NULL? Addr Y Netmask - Dest/BCast Y > ] [F 17] IFIndex 1 > ] lo (flags 0x49): Non-NULL? Addr Y Netmask - Dest/BCast Y > ] [F 17] IFIndex 2 > ] eth1 (flags 0x1003): Non-NULL? Addr Y Netmask - Dest/BCast Y > ] [F 17] IFIndex 3 > ] sit0 (flags 0x80): Non-NULL? Addr Y Netmask - Dest/BCast Y > ] [F 17] IFIndex 4 > ] tap0 (flags 0x1043): Non-NULL? Addr Y Netmask - Dest/BCast Y > ] [F 17] IFIndex 5 > ] tap1 (flags 0x1043): Non-NULL? Addr Y Netmask - Dest/BCast Y > ] [F 17] IFIndex 6 > ] ppp0 (flags 0x10d1): Non-NULL? Addr - Netmask - Dest/BCast - > ] ippp0 (flags 0xd1): Non-NULL? Addr - Netmask - Dest/BCast - > ] lo (flags 0x49): Non-NULL? Addr Y Netmask Y Dest/BCast Y > ] [F 2] Addr 0x0100007f > ] Mask 0x000000ff > ] eth1 (flags 0x1003): Non-NULL? Addr Y Netmask Y Dest/BCast Y > ] [F 2] Addr 0x3d40a8c0 > ] Mask 0x00ffffff > ] tap0 (flags 0x1043): Non-NULL? Addr Y Netmask Y Dest/BCast Y > ] [F 2] Addr 0x0120a8c0 > ] Mask 0x00ffffff > ] tap1 (flags 0x1043): Non-NULL? Addr Y Netmask Y Dest/BCast Y > ] [F 2] Addr 0x0121a8c0 > ] Mask 0x00ffffff > ] ppp0 (flags 0x10d1): Non-NULL? Addr Y Netmask Y Dest/BCast Y > ] [F 2] Addr 0x........ > ] Mask 0xffffffff > ] ippp0 (flags 0xd1): Non-NULL? Addr Y Netmask Y Dest/BCast Y > ] [F 2] Addr 0x........ > ] Mask 0xffffffff > ] eth0 (flags 0x1043): Non-NULL? Addr Y Netmask Y Dest/BCast - > ] [F 10] Addr fe80000000000000................ > ] lo (flags 0x49): Non-NULL? Addr Y Netmask Y Dest/BCast - > ] [F 10] Addr 00000000000000000000000000000001 > ] tap0 (flags 0x1043): Non-NULL? Addr Y Netmask Y Dest/BCast - > ] [F 10] Addr fe80000000000000709548fffeed901c > ] tap1 (flags 0x1043): Non-NULL? Addr Y Netmask Y Dest/BCast - > ] [F 10] Addr fe8000000000000070f756fffec1794f > > Although <ifaddrs.h> doesn't explicitly claim it, there is at least > one program that relies on ifa_addr always being non-NULL (=> #356858); > and it should be no problem to get those empty structures out of > the list. this is the intended behaviour, your can search for getifaddrs(3) on the web (as manpages-dev don't have it), and you'll see that if_addr beeing NULL is unambiguously documented. http://www.gsp.com/cgi-bin/man.cgi?section=3&topic=getifaddrs http://developer.apple.com/documentation/Darwin/Reference/ManPages/man3/getifaddrs.3.html -- ·O· Pierre Habouzit ··O madcoder@debian.org OOO http://www.madism.orgAttachment: pgpGnidn0lGaG.pgp
Description: PGP signature
--- End Message ---