Obtaining Ethernet link speed
Obtaining Ethernet link speed
- Subject: Obtaining Ethernet link speed
- From: "Peter Sichel" <email@hidden>
- Date: Wed, 23 Apr 2003 13:02:22 -0400
I'm trying to track down the API for determining the Link Speed
as it appears in the Network Utility under the Info tab for example.
I've tried using the interface data returned via sysctl NET_RT_IFLIST.
Struct if_data includes an ifi_baudrate member but it always reports
10 Mb.
I haven't found anything yet in the SCDynamicStore (System Configuration
framework) or IOKit using the IORegistryExplorer.
I see that ifconfig reports the media type as 100BaseTX versus 10BaseT/UTP.
"man ifconfig" talks about the media selection system, but I'm not
familiar with how one might access this.
Any pointers would be appreciated. Thanks,
- Peter Sichel
Sustainable Softworks
_______________________________________________
macnetworkprog mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/macnetworkprog
Do not post admin requests to the list. They will be ignored.