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

[release/6.0-maui] [Android] Fix accessing network interfaces information #63628

Conversation

simonrozsival
Copy link
Member

@simonrozsival simonrozsival commented Jan 11, 2022

Backport of #62780 and #63633 to release/6.0-maui

Customer Impact

Testing

The functionality is covered with functional tests.

Risk

* Re-enable tests

* Dynamically load getifaddrs if necessary

* Prevent redeclaration of the ifaddrs struct

* Fix typo

* Do not close the dynamic library

* Enable the fixed functional tests in CI

* Reduce code duplication for obtaining libc file name

* Simplify usage of the function pointers

* Move typedefs

* Rename the _ensure_ function

* Remove fptr typedefs

* Update comment

* Add missing include

* Update comment

* Remove unnecessary comment

* Move static variable

* Remove unnecessary change

* Move LIBC_FILENAME to the utilities header

* Avoid error if constant is undefined

* Conditionally include ifaddrs

* Try to fix cmake_symbol_exists issue for browser

* Minor tweaks

* Try different way of detecting getifaddrs

* Use the hack only for Android builds

* Revert "Move LIBC_FILENAME to the utilities header"

This reverts commit 4e67687.

* Revert "Reduce code duplication for obtaining libc file name"

This reverts commit aca15d1.

* Simplify opening libc

* Update code style

* Fix race condition

* Prevent race condition

* Switch locking implementation for a lock-free implementation

* Enable unit test for Android

* Try using weak symbols

* Fix function name

* Revert "Fix function name"

This reverts commit f927aae.

* Revert "Try using weak symbols"

This reverts commit 46d3ede.

* Refactor code to use pthread_once
@ghost
Copy link

ghost commented Jan 11, 2022

Tagging subscribers to this area: @dotnet/ncl
See info in area-owners.md if you want to be subscribed.

Issue Details

Backport of #62780 to release/6.0-maui

Customer Impact

Testing

The functionality is covered with functional tests.

Risk

Author: simonrozsival
Assignees: simonrozsival
Labels:

area-System.Net

Milestone: -

* Update tests

* Add android specific implementation

* Add UnsupportedOSPlatform attributes

* Fix typo

* Remove unnecessary file reference

* Clean-up code

* Minor code clean-up

* Remove dictionary

* Refactoring

* Revert comment change
@safern safern merged commit 49d6db3 into dotnet:release/6.0-maui Jan 18, 2022
@ghost ghost locked as resolved and limited conversation to collaborators Feb 18, 2022
@karelz karelz added this to the 6.0.MAUI milestone Apr 8, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants