---
title: SetPromiscuousModeEnable
framework: networkingdriverkit
role: symbol
role_heading: Instance Method
path: networkingdriverkit/iousernetworkethernet/setpromiscuousmodeenable-82bt
---

# SetPromiscuousModeEnable

Enables or disables support for monitoriong all network packets.

## Declaration

```occ
virtual kern_return_t SetPromiscuousModeEnable(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 enable promiscuous mode on your device.

## 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)
- [SetWakeOnMagicPacketSupport](networkingdriverkit/iousernetworkethernet/setwakeonmagicpacketsupport.md)
- [SetWakeOnMagicPacketEnable](networkingdriverkit/iousernetworkethernet/setwakeonmagicpacketenable.md)
- [IOUserNetworkMACAddress](networkingdriverkit/iousernetworkmacaddress.md)
