---
title: SetWakeOnMagicPacketEnable
framework: networkingdriverkit
role: symbol
role_heading: Instance Method
path: networkingdriverkit/iousernetworkethernet/setwakeonmagicpacketenable
---

# SetWakeOnMagicPacketEnable

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

## Declaration

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

## Parameters

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

## Return Value

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

## Discussion

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

## See Also

### Configuring Link Attributes

- [SetTxPacketHeadroom](networkingdriverkit/iousernetworkethernet/settxpacketheadroom.md)
- [SetTxPacketTailroom](networkingdriverkit/iousernetworkethernet/settxpackettailroom.md)
- [SetSoftwareVlanSupport](networkingdriverkit/iousernetworkethernet/setsoftwarevlansupport.md)
- [SetMulticastAddresses](networkingdriverkit/iousernetworkethernet/setmulticastaddresses-7wjbn.md)
- [SetAllMulticastModeEnable](networkingdriverkit/iousernetworkethernet/setallmulticastmodeenable-5rtva.md)
- [SetPromiscuousModeEnable](networkingdriverkit/iousernetworkethernet/setpromiscuousmodeenable-82bt.md)
- [SetWakeOnMagicPacketSupport](networkingdriverkit/iousernetworkethernet/setwakeonmagicpacketsupport.md)
- [IOUserNetworkMACAddress](networkingdriverkit/iousernetworkmacaddress.md)
