DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 
SVR5 and SCO OpenServer 5

MAC_INFO_ACK(D7mdi)


MAC_INFO_ACK -- Acknowledges a MAC_INFO_REQ message

Synopsis

   #include <sys/stream.h>
   #include <sys/mdi.h>
   

typedef struct mac_info_ack { ulong mac_primitive; ulong mac_max_sdu; ulong mac_min_sdu; ulong mac_mac_type; ulong mac_driver_version; ulong mac_if_speed; } mac_info_ack_t;

Description

The MAC_INFO_ACK message consists of one M_PCPROTO(D7str) message block. This primitive conveys information about the MDI driver, and the network media attached to the network adapter it is driving.

Parameters


mac_primitive
conveys the MAC_INFO_ACK(D7mdi) message

mac_max_sdu
conveys the maximum frame size (in bytes) that the MAC user can send to the MDI driver. For Ethernet, this value is 1514. For Token Ring it may be larger.

mac_min_sdu
conveys the minimum frame size (in bytes) that the MAC user can send to the MDI driver. For both Ethernet and Token Ring, this value is 14.

mac_mac_type
conveys the network MAC type, which must be one of:
   #define MAC_CSMACD 0x0	/* IEEE 802.3 CSMA/CD network */
   #define MAC_TPR    0x02	/* IEEE 802.5 Token Passing Ring */
   #define MAC_FDDI   0x08	/* FDDI on Copper/Fiber */
See the mac_stats_eth(D4mdi), mac_stats_fddi(D4mdi), and mac_stats_tr(D4mdi) manual pages for details about the data formats for each media type.

mac_driver_version
conveys the version of the MDI to which the driver is written. For example, version 1.2 of this interface is encoded in the mdi.h header file as:
   #define MDI_VERSION 0x0102

mac_if_speed
conveys the interface speed in bits per second. For example:

media type interface speed (b/s)
16Mb/s Token Ring 16,000,000
10Mb/s Ethernet 10,000,000
FDDI and 100BaseT 100,000,000

 media type          interface speed (b/s)
 ------------------------------------------
 16Mb/s Token Ring   16,000,000
 10Mb/s Ethernet     10,000,000
 FDDI and 100BaseT   100,000,000
The value passed in mac_if_speed should match the current interface speed. For example, if a 10/100 Ethernet adapter is currently using 10BaseT, mac_if_speed should be 10000000. If this interface is currently using 100BaseT, mac_if_speed should be 100000000.

State

The message is valid in any state in response to a MAC_INFO_REQ(D7mdi) message.

Hardware applicability

All

Version applicability

mdi: 1, 2, 2.1

References

Section MDI manual pages on OpenServer 6, Section 7mdi manual pages on UnixWare 7.1.4
19 June 2005
© 2005 The SCO Group, Inc. All rights reserved.
OpenServer 6 and UnixWare (SVR5) HDK - June 2005