<!--
{
  "availability" : [
    "iOS: 2.0.0 - 11.0.0",
    "iPadOS: 2.0.0 - 11.0.0",
    "macCatalyst: 13.1.0 - 13.1.0",
    "macOS: 10.4.0 - 10.13.0",
    "tvOS: 9.0.0 - 11.0.0",
    "visionOS: 1.0.0 - 1.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "CFNetwork",
  "identifier" : "/documentation/CFNetwork/CFNetDiagnosticCopyNetworkStatusPassively(_:_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "CFNetwork"
    ],
    "preciseIdentifier" : "c:@F@CFNetDiagnosticCopyNetworkStatusPassively"
  },
  "title" : "CFNetDiagnosticCopyNetworkStatusPassively(_:_:)"
}
-->

# CFNetDiagnosticCopyNetworkStatusPassively(_:_:)

Gets a network status value.

```
func CFNetDiagnosticCopyNetworkStatusPassively(_ details: CFNetDiagnostic, _ description: UnsafeMutablePointer<Unmanaged<CFString>?>?) -> CFNetDiagnosticStatus
```

## Parameters

`details`

CFNetDiagnosticRef, created by [`CFNetDiagnosticCreateWithStreams(_:_:_:)`](/documentation/CFNetwork/CFNetDiagnosticCreateWithStreams(_:_:_:)) or [`CFNetDiagnosticCreateWithURL(_:_:)`](/documentation/CFNetwork/CFNetDiagnosticCreateWithURL(_:_:)), for which the Network Diagnostics status is to be obtained.

`description`

If not `NULL`, upon return contains a localized string containing a description of the current network status. Ownership follows the [The Create Rule](https://developer.apple.com/library/archive/documentation/CoreFoundation/Conceptual/CFMemoryMgmt/Concepts/Ownership.html#//apple_ref/doc/uid/20001148-103029).

## Return Value

A network status value.

## Discussion

This function returns a status value that can be used to display basic information about the connection, and optionally gets a localized string containing a description of the current network status.

This function is guaranteed not to generate network activity.

### Special Considerations

This function is thread safe as long as another thread does not alter the same CFNetDiagnosticRef at the same time.

---

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)