MACIOC_GETSTAT(7mdi)


MACIOC_GETSTAT -- MDI return statistics ioctl

Description

This ioctl requests that the MDI driver return media-specific statistics containing information about the MDI driver, the network adapter and the network itself. MDI includes a statistics mechanism that uses media-specific statistics structures:

mac_stats_eth(D4mdi)
Ethernet

mac_stats_tr(D4mdi)
IEEE 802.5 token passing ring

mac_stats_fddi(D4mdi)
ANSI Fiber Distributed Data Interface (FDDI)

mac_stats_isdn(D4mdi)
ISDN (Integrated Services Digital Network)

This replaces the mechanism based on the ifstats(D4) structure to provide information to the netstat(ADMN) command.

Parameters

The ioctl data contains space into which the MDI driver should copy its statistics structure.

Data returned

The MDI driver should fill the ioctl data area with the its statistics structure.

Version applicability

mdi: 1, 2, 2.1

References

Intro(MDI), MACIOC_SETSTAT(MDI), MACIOC_CLRSTAT(MDI)

``MDI ioctls'' in HDK Technical Reference


02 June 2005
© 2005 The SCO Group, Inc. All rights reserved.
HDK 7.1.0b - 15 March 2000