Closed s3erios closed 6 years ago
What's the equivalent operation using command line?
I'm not sure if there is any such command exists; 'ifinfo' tool (in tools/tools/ifinfo) just displays it in parentheses (e.g., 'Interface lo0 (lo0)).
Thanks for the contribution! PR was committed to downstream a while ago, time to commit it here too.
This approach uses net.link sysctl (may be suboptimal with many interfaces in system, but utilizes existing kernel functionality).
There is no MIT license header (since the code is rewritten part of head/tools/tools/ifinfo/ifinfo.c, I think this should be mentioned somehow).