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

Use if_indextoname to log the interface name for DNS-SD functions #420

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

garethsb
Copy link
Contributor

On Linux, this helps because you see the familiar name in the log, e.g. eth0.

On Windows, it's not much use because if_indextoname returns a name like "ethernet_32778" that seems to be pretty meaningless. We have cpprest/host_utils.cpp code using the GetAdaptersAddresses API to get AdapterName, but not FriendlyName, already but we don't currently have any dependencies from the mdns library on the nmos-cpp library, so I didn't want to do add coupling just for this. For now, I think you can continue to use PowerShell Get-NetAdapter -InterfaceIndex N to look up interface index N.

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.

1 participant