Navigation Menu

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

[network][windows] GetNameServers(): use GetAdaptersAddresses #11995

Merged
merged 1 commit into from May 10, 2017

Conversation

Rechi
Copy link
Member

@Rechi Rechi commented Apr 21, 2017

Description

Use GetAdaptersAddresses instead of GetNetworkParams to get the list of nameservers on windows

Motivation and Context

GetAdaptersAddresses also returns IPv6 addresses ans is Windows Store compatible.

How Has This Been Tested?

runtime tested

Types of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My code follows the Code guidelines of this project
  • My change requires a change to the documentation, either Doxygen or wiki
  • I have updated the documentation accordingly
  • I have read the CONTRIBUTING document
  • I have added tests to cover my change
  • All new and existing tests passed

@Rechi Rechi added Type: Feature non-breaking change which adds functionality v18 Leia Platform: Windows labels Apr 21, 2017
@Rechi Rechi requested a review from Paxxi April 21, 2017 09:49
switch (sa->sa_family)
{
case AF_INET:
RtlIpv4AddressToStringA(&reinterpret_cast<const struct sockaddr_in *>(sa)->sin_addr, buffer);

This comment was marked as spam.

This comment was marked as spam.

@stammen
Copy link
Contributor

stammen commented Apr 21, 2017

@MartijnKaijser @Paxxi In my Windows 10 UWP version, TARGET_WIN10 will use different code in xbmc/network/windowsstore/NetworkWin10.cpp. There are too many unsupported Win32 APIs in NetworkWin32.cpp. Any changes to NetworkWin32.cpp will not affect the UWP version.

@Rechi
Copy link
Member Author

Rechi commented Apr 28, 2017

@Paxxi as this file isn't currently used in the UWP development version can this get merged?

@MartijnKaijser
Copy link
Member

jenkins build and merge

1 similar comment
@Rechi
Copy link
Member Author

Rechi commented May 10, 2017

jenkins build and merge

@jenkins4kodi jenkins4kodi merged commit 8165f22 into xbmc:master May 10, 2017
@Rechi Rechi deleted the windowsDNS branch May 10, 2017 21:38
@Rechi Rechi added this to the L 18.0-alpha1 milestone May 10, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Platform: Windows Type: Feature non-breaking change which adds functionality v18 Leia
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants