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

# SetMulticastAddresses

Sets the device addresses to use for multicast filtering.

```
virtual kern_return_t SetMulticastAddresses(const IOUserNetworkMACAddress *addresses, uint32_t count);
```

## Parameters

`addresses`

An array of MAC addresses for the devices to monitor.

`count`

The number of items in the `addresses` parameter.

## Return Value

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

## Discussion

Override this method and use it to set up a Ethernet multicast filter on your device.

---

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)