From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/4845 Path: news.gmane.org!not-for-mail From: Natanael Copa Newsgroups: gmane.linux.lib.musl.general Subject: Re: if_nameindex/getifaddrs and dhcpcd issue Date: Wed, 9 Apr 2014 09:13:48 +0200 Message-ID: <20140409091348.3159011a@ncopa-desktop.alpinelinux.org> References: <20140408111147.5f79729f@ncopa-desktop.alpinelinux.org> <20140408134255.GE26358@brightrain.aerifal.cx> <20140408153840.GF26358@brightrain.aerifal.cx> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1397027669 9775 80.91.229.3 (9 Apr 2014 07:14:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 9 Apr 2014 07:14:29 +0000 (UTC) Cc: dalias@aerifal.cx To: musl@lists.openwall.com Original-X-From: musl-return-4849-gllmg-musl=m.gmane.org@lists.openwall.com Wed Apr 09 09:14:22 2014 Return-path: Envelope-to: gllmg-musl@plane.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1WXmiB-0006xl-OT for gllmg-musl@plane.gmane.org; Wed, 09 Apr 2014 09:14:20 +0200 Original-Received: (qmail 5190 invoked by uid 550); 9 Apr 2014 07:14:10 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 5170 invoked from network); 9 Apr 2014 07:14:06 -0000 In-Reply-To: <20140408153840.GF26358@brightrain.aerifal.cx> X-Mailer: Claws Mail 3.9.3 (GTK+ 2.24.23; x86_64-alpine-linux-uclibc) Xref: news.gmane.org gmane.linux.lib.musl.general:4845 Archived-At: On Tue, 8 Apr 2014 11:38:41 -0400 Rich Felker wrote: > On Tue, Apr 08, 2014 at 03:16:10PM +0100, Justin Cormack wrote: > > I was under the impression that the ioctl-based interface for ipv6 is > > incomplete under Linux. > > Probably "incomplete" in a sense that it can't do some special-purpose > stuff that most users don't need. You cannot get the configured ipv6 addresses via SIOCGIFCONF. That is why musl needs to parse /proc for that. ioctl-based interface for ipv4 is also "incomplete". You cannot get anything else than the primary address so current musl getifaddrs will not give you all configured ipv4 addresses. > Busybox entirely avoids netlink, as > far as I can tell, Not entirely. the iproute implementation in bb uses netlink, but you can of course disable that during configuration. A quick grep also indicate that busybox ifplugd uses netlink. > and it's perfectly acceptable for setting up ipv6, > at least in simple setups. You don't even need busybox's iproute2 > workalikes; ifconfig and route work fine. And if you do that, then you cannot assign more than one ip addr on each interface. (you'll have to use alias, eth0:1 for that), but yes, thats no longer a simple setup. -nc