<!--
{
  "availability" : [
    "*: -",
    "DriverKit: -"
  ],
  "documentType" : "symbol",
  "framework" : "NetworkingDriverKit",
  "identifier" : "/documentation/NetworkingDriverKit/IOUserNetworkEthernet/ReportAvailableMediaTypes",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "NetworkingDriverKit"
    ],
    "preciseIdentifier" : "c:@S@IOUserNetworkEthernet@F@ReportAvailableMediaTypes#*1i#i#"
  },
  "title" : "ReportAvailableMediaTypes"
}
-->

# ReportAvailableMediaTypes

Tells the system what types of networking media your driver supports.

```
virtual kern_return_t ReportAvailableMediaTypes(const IOUserNetworkMediaType *mediaTypes, uint32_t count);
```

## Parameters

`mediaTypes`

An array of [`IOUserNetworkMediaType`](/documentation/NetworkingDriverKit/IOUserNetworkMediaType) types. For each type, combine a [Media Type Constants](/documentation/NetworkingDriverKit/media-type-constants) constant with one or more [Configuration Options](/documentation/NetworkingDriverKit/configuration-options) constants to indicate the configurations you support.

`count`

The number of items in the `mediaTypes` array.

## Return Value

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

## Discussion

Apple recommends that you include [`kIOUserNetworkMediaEthernetAuto`](/documentation/NetworkingDriverKit/kIOUserNetworkMediaEthernetAuto) as one of the media types you support. That media type lets the system configure the networking stack automatically on your behalf, based on the other media types you specify.

---

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)