You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* [Android] Fix NetworkInterface.GetAllNetworkInterfaces (#76370)
* Revert "[Android] Port getifaddrs implementation from Xamarin.Android (#71943)"
This reverts commit 1de4a5c.
* Fix allocating memory block for interfaces and addresses on recent Android SDKs
* Detect loopback interface on Android
* Add comment with explanation
* Simplify the changes to be closer to the original code
* Fix build
* Fix typos
Co-authored-by: Alexander Köplinger <[email protected]>
* Improve comment
* Indent using spaces instead of tabs
* Remove check for ifaddrs.h
* Add ANDROID_GETIFADDRS_WORKAROUND
* Update comment
Co-authored-by: Alexander Köplinger <[email protected]>
* [Android] Fix NetworkInterface.GetAllNetworkInterfaces on API 21-23 (#76541)
* Bring back pal_ifaddrs
* Update the header file
Co-authored-by: Alexander Köplinger <[email protected]>
Copy file name to clipboardExpand all lines: src/native/libs/System.Native/pal_ifaddrs.h
+8-30Lines changed: 8 additions & 30 deletions
Original file line number
Diff line number
Diff line change
@@ -7,37 +7,15 @@
7
7
#error The pal_ifaddrs.h shim is intended only for Android
8
8
#endif
9
9
10
+
#if__ANDROID_API__ >= 24
11
+
#error The pal_ifaddrs.h shim is only necessary for Android API 21-23 and it should be removed now that the minimum supported API level is 24 or higher
12
+
#endif
13
+
10
14
// Android doesn't include the getifaddrs and freeifaddrs functions in older Bionic libc (pre API 24).
11
-
// In recent Android versions (Android 11+) the data returned by the getifaddrs function is not valid.
12
15
// This shim is a port of Xamarin Android's implementation of getifaddrs using Netlink.
0 commit comments