On 26/03/15(Thu) 17:35, Florian Obser wrote: > On Thu, Mar 26, 2015 at 05:46:12PM +0100, Henning Brauer wrote: > > * Mike Belopuhov <m...@belopuhov.com> [2015-03-26 14:36]: > > > however I agree that if we do this for ipv6 we should do it for ipv4 as > > > well > > > but then do we care about tons of stuff out there parsing ifconfig output? > > > > that's the prime question. I would love to move to CIDR notation - are > > we breaking people's scripts with that? The inet side has been the same > > for, what, decades? > > Of course this breaks stuff :) > > Diff at the end (for those interested) shows in which way it breaks > ansible - which I understand the cool kids use these days... > Note to self: ansible should care about pltime... > > We could port libxo. > /me runs away giggling like an idiot
Well just use inet_net_pton(3) and call it a day. You see, I'm trying to help people writing parsers ;)