From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/4834 Path: news.gmane.org!not-for-mail From: Justin Cormack Newsgroups: gmane.linux.lib.musl.general Subject: Re: if_nameindex/getifaddrs and dhcpcd issue Date: Tue, 8 Apr 2014 15:16:10 +0100 Message-ID: References: <20140408111147.5f79729f@ncopa-desktop.alpinelinux.org> <20140408134255.GE26358@brightrain.aerifal.cx> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1396966590 15562 80.91.229.3 (8 Apr 2014 14:16:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 8 Apr 2014 14:16:30 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-4838-gllmg-musl=m.gmane.org@lists.openwall.com Tue Apr 08 16:16:24 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 1WXWp6-0004Kc-Aa for gllmg-musl@plane.gmane.org; Tue, 08 Apr 2014 16:16:24 +0200 Original-Received: (qmail 28628 invoked by uid 550); 8 Apr 2014 14:16:23 -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 28620 invoked from network); 8 Apr 2014 14:16:23 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=specialbusservice.com; s=google; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=yPDBC/zQyaAHkHChfVXPDVj9AT45MGOSaHatjhUO9Co=; b=B6S5Wf3kviwsKeVD3Cs3ELSn7UysPnD2st570PyZX04rZdPTGSQ2JtfU3oi9w5XOOU U6Jq0R0NnXjIpH8HPKXYNbqxPO0GWI+7v08rPdhO6tAiP+F5TD7VmBl8BmuUG6hAzLjJ 03PRNdiDsSH0K1ocUkgGEK/ZrLRmgG+u94lEQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=yPDBC/zQyaAHkHChfVXPDVj9AT45MGOSaHatjhUO9Co=; b=Cj1YXiXNiLveK0gg4a+lt39JkN3sS/2KLCpxJhDExM4XxnG7VDdubuwHX4Q9ly10pU djInPBuTKWKhkB954wLLTX6L1dJPhWGvQbby1UHeLc1o57hOtbduSLdt+D06SWmc0uUW +/XDpomW3+ojdDdcghOtapstUq/907J9LyDOYlYUtpE3of+mKYgSx2391m9DsVfmPYXN wvJsz2D4k83DLJ9Tp6x6+k/oBnf0jNjnKxksUfncYvTHX+9SgGNRQg6kSlOaLAgXe1kj ZPadUpLS77MjfNjz3JIz7KVuYM5n7GzYUoZrJfYfLV6LDvVAuDTdEI4JA6se5ByxLWBo KRJg== X-Gm-Message-State: ALoCoQnjbuvyf6ITor/tadrX544hIlaJ1BEnwsnunPHCYVrlFT/cbKGCR94y71xZ+ndmxkswhyxA X-Received: by 10.182.230.135 with SMTP id sy7mr3561733obc.24.1396966571004; Tue, 08 Apr 2014 07:16:11 -0700 (PDT) In-Reply-To: <20140408134255.GE26358@brightrain.aerifal.cx> Xref: news.gmane.org gmane.linux.lib.musl.general:4834 Archived-At: On Tue, Apr 8, 2014 at 2:42 PM, Rich Felker wrote: >> and it only needs to read ipv4 addresses, >> unless it is implementing dhcp6 too, maybe it does now. Again dhcp6 >> needs netlink, the Musl ipv6 parts for getifaddrs already use /proc >> which is definitely unreliable for early boot config in a distro in my >> view. > > In what way does dhcp6 need netlink? What's made this discussion > difficult so far on IRC is assertions of that form (although not the > same one) without an explanation of why it's believed to be true, so > I'd like to keep rational discussion possible by making sure that such > claims are backed up by explanation rather than just stated as fact. I was under the impression that the ioctl-based interface for ipv6 is incomplete under Linux. That does not mean anything needs to be in libc though. ISC dhcp for v6 just calls out to ip in scripts, rather than ifconfig that it uses for v4, so it is indirectly uses netlink, but does not require any libc support, indeed all the C code is portable. Justin