setHardwareAddress(const void *, UInt32)
Sets or changes the station address used by the Ethernet controller.
Declaration
virtual IOReturn setHardwareAddress(
const void *addr,
UInt32addrBytes);Parameters
- addr:
The buffer containing the hardware address provided by the client.
- addrBytes:
The size of the address buffer provided by the client in bytes.
Return Value
Returns kIOReturnSuccess on success, or an error otherwise.
Overview
The default implementation of the abstract method inherited from IONetworkController. This method will call the overloaded form IOEthernetController::setHardwareAddress() that subclasses are expected to override.
See Also
Miscellaneous
createInterfacedisablePacketFilterenablePacketFilterfreegetHardwareAddress(IOEthernetAddress *)getHardwareAddress(void *, UInt32 *)getMaxPacketSizegetMinPacketSizegetPacketFilters(const OSSymbol *, UInt32 *)getPacketFilters(UInt32 *)getVlanTagDemandinitinitializepublishPropertiessetHardwareAddress(const IOEthernetAddress *)setMulticastListsetMulticastModesetPromiscuousModesetVlanTagsetWakeOnMagicPacket