Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow to retrieve original interface name via ifconfig_get_orig_name() #52

Merged
merged 2 commits into from Feb 12, 2018

Conversation

s3erios
Copy link
Contributor

@s3erios s3erios commented Oct 16, 2017

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).

@asomers
Copy link
Contributor

asomers commented Dec 20, 2017

What's the equivalent operation using command line?

@s3erios
Copy link
Contributor Author

s3erios commented Dec 30, 2017

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)).

@Savagedlight Savagedlight merged commit 75a97b9 into Savagedlight:master Feb 12, 2018
@Savagedlight
Copy link
Owner

Thanks for the contribution!
PR was committed to downstream a while ago, time to commit it here too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants