|
|
#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;
mac_primitive
mac_max_sdu
mac_min_sdu
mac_mac_type
#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
#define MDI_VERSION 0x0102
mac_if_speed
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 |
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.