[tor-bugs] #28593 [Core Tor/Tor]: On macOS/iOS, experiment with SystemConfiguration.framework to get a list of network interfaces

Tor Bug Tracker & Wiki blackhole at torproject.org
Fri Nov 23 09:54:18 UTC 2018


#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        |     Resolution:
 Keywords:  macos ios     |  Actual Points:
Parent ID:                |         Points:
 Reviewer:                |        Sponsor:
--------------------------+------------------------
Description changed by rl1987:

Old description:

> 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.

New description:

 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/1517090-scnetworkinterfacecopyall?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#comment:1>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list