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

# SetWakeOnMagicPacketSupport

Tells the system whether the device supports being woken up when a specially formatted packet arrives.

```
kern_return_t SetWakeOnMagicPacketSupport(bool isSupported);
```

## Parameters

`isSupported`

If `YES`, the device supports waking up when the network receives a magic packet; otherwise, it doesn’t.

## Return Value

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

---

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)