Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Using SIOCGIFCONF looks like an interesting alternative, but the only perl example I found is very non-portable: Re: How do I get the local internet IP address?. sys/ioctl.ph isn't present in any of my perlbrewed perls, and even after running h2ph, it fails with "unsupported architecture" for macOS. But I did confirm with the following C program that SIOCGIFCONF is relatively portable when implemented right: https://gist.github.com/OrangeTide/909204.
Is there an alternative I missed?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Getting list of network interfaces
by Corion (Patriarch) on Mar 26, 2026 at 10:18 UTC | |
by Anonymous Monk on Mar 26, 2026 at 13:06 UTC | |
|
Re: Getting list of network interfaces
by Marshall (Canon) on Mar 27, 2026 at 06:58 UTC | |
by Anonymous Monk on Mar 27, 2026 at 08:46 UTC | |
by Marshall (Canon) on Apr 03, 2026 at 12:48 UTC |