MDI set MAC address ioctl
This ioctl requests that the MDI driver
set the MAC address in use on the controller.
The request will appear as an
with an associated
block that contains the MAC address to be used.
This new address should be used
as the source MAC address for all transmitted packets
and the controller should be set
to receive packets sent to this address,
as well as all defined multicast addresses
and all MAC level broadcasts.
This request should only be acted upon
ioc_uid is set to zero.
The new MAC address must be preserved
across a close and subsequent open of the driver.
When this driver is unloaded from the kernel
and subsequently reloaded,
the value of the current MAC address
must be reset to the factory MAC address.
The ioctl data contains the
MAC address to be set.
Acknowledgement should be one of the following:
ioc_rval to zero.
The ioctl data must be returned in the
mp->b_cont portion of the message; this
portion of the message cannot be freed by the driver.
ioc_count to zero,
ioc_rval to -1,
ioc_error to one of the following:
Device does not use MAC addresses
Device does not support changing the MAC address.
For any other error conditions,
ioc_error to an appropriate value from
1, 2, 2.1
``MDI ioctls'' in HDK Technical Reference
02 June 2005
© 2005 The SCO Group, Inc. All rights reserved.
HDK 7.1.0b - 15 March 2000