Instance Property

subnetMasks

The IPv4 network masks to assign to the TUN interface.

Declaration

var subnetMasks: [String] { get }

Discussion

Each mask in this array is combined with the IP address in the corresponding index in addresses to specify an IPv4 network that the TUN interface is (virtually) connected to.

See Also

Accessing IPv4 Properties

var addresses: [String]

The IPv4 addresses to assign to the TUN interface.

var includedRoutes: [NEIPv4Route]?

The routes that specify what IPv4 network traffic will be routed to the TUN interface.

var excludedRoutes: [NEIPv4Route]?

The routes that specify what IPv4 network traffic will be routed to the primary physical interface.

class NEIPv4Route

NEIPv4Route contains settings for 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