To be clear, accessing the routing table has never been supported on iOS. Doing this requires that you use various structures defined in
<net/route.h>
, and that header has never been present in the iOS SDK [1].
Can it be done using network extensions?
No. NetworkExtension providers can change the routing table, but they don’t have any special mechanism to access it.
Share and Enjoy
—
Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware
let myEmail = "eskimo" + "1" + "@apple.com"
[1] At one time it was present in the iOS Simulator SDK (see this thread) but a) that time has passed, and b) it’s the device SDK that matters.