<!--
{
  "availability" : [
    "macCatalyst: 13.0.0 -",
    "macOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "vmnet",
  "identifier" : "/documentation/vmnet/vmnet_network_get_ipv4_subnet(_:_:_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "vmnet"
    ],
    "preciseIdentifier" : "c:@F@vmnet_network_get_ipv4_subnet"
  },
  "title" : "vmnet_network_get_ipv4_subnet(_:_:_:)"
}
-->

# vmnet_network_get_ipv4_subnet(_:_:_:)

Returns the IPv4 subnet of a network.

```
func vmnet_network_get_ipv4_subnet(_ network: vmnet_network_ref, _ subnet: UnsafeMutablePointer<in_addr>, _ mask: UnsafeMutablePointer<in_addr>)
```

## Parameters

`network`

The network object.

---

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)