Instance Property

matchRemotePrefix

A number that specifies the remote sub-network that the rule matches.

Declaration

var matchRemotePrefix: Int { get }

Discussion

This property is NSNotFound for rules where matchRemoteEndpoint doesn’t contain an IP address.

See Also

Matching Network Traffic Characteristics

var matchRemoteEndpoint: NWHostEndpoint?

The remote endpoint that the rule matches.

var matchLocalNetwork: NWHostEndpoint?

The local network that the rule matches.

var matchLocalPrefix: Int

A number that specifies the local sub-network that the rule matches.

var matchProtocol: NENetworkRule.Protocol

The protocol that the rule matches.

enum NENetworkRule.Protocol

A type to represent network protocols used by routing rules.

var matchDirection: NETrafficDirection

The direction of network traffic that the rule matches.

enum NETrafficDirection

A type to represent the direction of network traffic.