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

Merged
merged 1 commit into from
Jan 3, 2025

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.

Copy link
Collaborator

@lo-simon lo-simon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@lo-simon lo-simon merged commit 5529066 into sony:master Jan 3, 2025
10 of 11 checks passed
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.

2 participants