Type Method

defaultRoute

A convenience method for creating the default IPv4 route.

Declaration

+ (NEIPv4Route *const)defaultRoute;

Return Value

An NEIPv4Route object containing the default IPv4 route.

Discussion

Set this route in the includedRoutes array in the NEIPv4Settings object to specify that all IPv4 network traffic be routed to the TUN interface by default.

See Also

Creating an IPv4 Route

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software