MACIOC_GETADDR(7mdi)


MACIOC_GETADDR -- MDI return MAC address ioctl

Description

This ioctl requests that the MDI driver return the current MAC address.

Parameters

The ioctl(2) data contains space into which the MDI driver should copy its MAC address.

Data returned

The MDI driver should fill the ioctl data area with its MAC address. This address is the current in-use MAC address. The data is one of the following:

M_IOCACK(D7str)
Acknowledge successful completion of the operation. Set ioc_rval set to zero and ioc_count set to the size of the MAC address in the associated M_DATA(D7str) block, with control information passed in an iocblk(D4str) structure.

M_IOCNAK(D7str)
Acknowledge unsuccessful completion of the operation. Set ioc_count to zero, ioc_rval to -1, and ioc_error set to EINVAL if the device does not use MAC addresses. For other error conditions, set ioc_error to an appropriate value from errnos(D5).

Version applicability

mdi: 1, 2, 2.1

References

Intro(7mdi)

``MDI ioctls'' in HDK Technical Reference


25 April 2004
© 2004 The SCO Group, Inc. All rights reserved.
HDK 7.1.0b - 15 March 2000