pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: ifconfig output in NetBSD 8



> On 1 Aug 2018, at 4:02 PM, Roy Marples <roy%marples.name@localhost> wrote:
> 
> There's a python script here [1] to use libc getifaddrs(3) which avoids this issue entirely and should work across all modern platforms.
> 
> This is probably better than scraping ifconfig or similar output across platforms.
> 
> Roy
> 
> [1] https://gist.github.com/provegard/1536682

Thanks Roy, I'll also suggest that approach to the upstream project I'm currently trying to get fixed.

I knew there had to be a better way.

Attachment: signature.asc
Description: Message signed with OpenPGP



Home | Main Index | Thread Index | Old Index