<!--
{
  "availability" : [
    "macCatalyst: 13.0.0 -",
    "macOS: 10.15.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "vmnet",
  "identifier" : "/documentation/vmnet/vmnet_subnet_mask_key",
  "metadataVersion" : "0.1.0",
  "role" : "Global Variable",
  "symbol" : {
    "kind" : "Global Variable",
    "modules" : [
      "vmnet"
    ],
    "preciseIdentifier" : "c:@vmnet_subnet_mask_key"
  },
  "title" : "vmnet_subnet_mask_key"
}
-->

# vmnet_subnet_mask_key

A string that represnts the IPv4 subnet mask to use on the interface.

```
let vmnet_subnet_mask_key: UnsafePointer<CChar>
```

## Discussion

You must also specify `vmnet_start_address_key` and `vmnet_end_address_key` that you supply in the `interface_desc` and `interface_param` dictionaries.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)