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

# SetWakeOnMagicPacketEnable

Enables or disables support for waking up the device when a specially formatted packet arrives.

```
virtual kern_return_t SetWakeOnMagicPacketEnable(bool enable);
```

## Parameters

`enable`

If `YES`, enable promiscuous mode for the device; otherwise, disable it.

## Return Value

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

## Discussion

Override this method and use it to configure your driver’s wake-on-magic-packet support.

---

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)