Re: Obtaining Ethernet link speed
Re: Obtaining Ethernet link speed
- Subject: Re: Obtaining Ethernet link speed
- From: Stéphane Sudre <email@hidden>
- Date: Fri, 2 May 2003 12:07:58 +0200
On mercredi, avr 23, 2003, at 22:35 Europe/Paris, Rich Kubota wrote:
At 1:02 PM -0400 4/23/03, Peter Sichel wrote:
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.
If you look under IORegistryExplorer and find the devices with the
IOEthernetInterface object, then take a look at the parent node, there
is the "IOLinkSpeed" property.
BTW, is there a reason why the ifconfig source code can't compile in
Darwin when you're enabling the features to get the link speed?
_______________________________________________
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.