---
title: ReportLinkStatus
framework: networkingdriverkit
role: symbol
role_heading: Instance Method
path: networkingdriverkit/iousernetworkethernet/reportlinkstatus-5cxiq
---

# ReportLinkStatus

Reports the status of the link between the device and your driver to the system.

## Declaration

```occ
virtual kern_return_t ReportLinkStatus(IOUserNetworkLinkStatus linkStatus, IOUserNetworkMediaType activeMediaType);
```

## Parameters

- `linkStatus`: The state of the connection to your device. For a list of possible values, see the constants in doc://com.apple.networkingdriverkit/documentation/NetworkingDriverKit/IOUserNetworkLinkStatus.
- `activeMediaType`: The media type that your device currently supports. The media type must be one you previously reported using the doc://com.apple.networkingdriverkit/documentation/NetworkingDriverKit/IOUserNetworkEthernet/ReportAvailableMediaTypes method.

## Return Value

Return Value kIOReturnSuccess on success, or another value if an error occurred.

## Discussion

Discussion Call this method when you want to notify the network about any changes to the link status or active media type for your device.

## See Also

### Reporting the Connection Status

- [ReportLinkQuality](networkingdriverkit/iousernetworkethernet/reportlinkquality-4noh0.md)
- [ReportDataBandwidths](networkingdriverkit/iousernetworkethernet/reportdatabandwidths-10ssx.md)
- [IOUserNetworkLinkStatus](networkingdriverkit/iousernetworklinkstatus.md)
- [IOUserNetworkLinkQuality](networkingdriverkit/iousernetworklinkquality.md)
