---
title: matchLocalPrefix
framework: networkextension
role: symbol
role_heading: Instance Property
path: networkextension/nenetworkrule/matchlocalprefix
---

# matchLocalPrefix

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

## Declaration

```swift
var matchLocalPrefix: Int { get }
```

## Discussion

Discussion This property is NSNotFound for rules whose matchLocalNetwork property is nil.

## See Also

### Matching network traffic characteristics

- [matchRemoteEndpoint](networkextension/nenetworkrule/matchremoteendpoint.md)
- [matchRemotePrefix](networkextension/nenetworkrule/matchremoteprefix.md)
- [matchLocalNetwork](networkextension/nenetworkrule/matchlocalnetwork.md)
- [matchProtocol](networkextension/nenetworkrule/matchprotocol.md)
- [NENetworkRule.Protocol](networkextension/nenetworkrule/protocol.md)
- [matchDirection](networkextension/nenetworkrule/matchdirection.md)
- [NETrafficDirection](networkextension/netrafficdirection.md)
