[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-bugs] #28593 [Core Tor/Tor]: On macOS/iOS, experiment with SystemConfiguration.framework to get a list of network interfaces
#28593: On macOS/iOS, experiment with SystemConfiguration.framework to get a list
of network interfaces
------------------------------+-----------------------
Reporter: rl1987 | Owner: (none)
Type: enhancement | Status: new
Priority: Medium | Milestone:
Component: Core Tor/Tor | Version:
Severity: Normal | Keywords: macos ios
Actual Points: | Parent ID:
Points: | Reviewer:
Sponsor: |
------------------------------+-----------------------
To get a list of network interfaces, we use platform-specific API
(`GetAdaptersAddresses()`) on Windows and `getifaddrs()` on Unix/Linux if
possible. Failing that, Tor can also call `ioctl()`.
On Darwin, there's a platform API to get and enumerate network interfaces.
See:
https://developer.apple.com/documentation/systemconfiguration/1517296-scnetworkinterfacegetinterface?language=objc
We should experiment with that and decide if we want to use it as a
primary way to get network interfaces on macOS/iOS.
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/28593>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs