Date: Wed, 24 Jul 2013 15:41:46 -0400 From: Rich Felker <dalias@...ifal.cx> To: musl@...ts.openwall.com Subject: Re: Proposed roadmap to 1.0 On Thu, Jul 25, 2013 at 12:25:06AM +0800, orc wrote: > > > I faced problem when I tried to build dhcpcd with musl. I > > > dropped dhcpcd then, found simple default.script for udhcpc and > > > forgot about any problems. > > > > Do you know what dhcpcd needs it for? If it's just automatic binding > > when you don't specify an interface, that's probably a bad idea > > anyway... But maybe we should support it. > > It listed interfaces internally, compared command line argument with > each, and if not found, exited with error. An interface of question was > down at the moment, so was not listed by getifaddrs(). OK, this is just gratuitous brokenness/non-portability. if_nametoindex can be used to check whether an interface name is valid, and if_nameindex gives you a list of all interfaces. Rich
Powered by blists - more mailing lists
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.