Re: Baudrate of Ethernet interface
Re: Baudrate of Ethernet interface
- Subject: Re: Baudrate of Ethernet interface
- From: "mm w" <email@hidden>
- Date: Sat, 12 Apr 2008 08:36:44 -0700
Hi
this is the common default value:
if(ifnet.if_type == IFT_ETHER) return (unsigned long) 10000000;
-> ifnet_t->if_data.ifi_baudrate;
I think you have to send you a message
/*
* Message format for use in obtaining information about interfaces
* from sysctl and the routing socket
*/
struct if_msghdr {
On Sat, Apr 12, 2008 at 5:08 AM, Rakesh Singhal
<email@hidden> wrote:
> HI all
>
> During development of a NKE, I need some information like MTU and link speed
> of an Ethernet interface on system. I am using two functions
> ifnet_mtu(ifnet_t interface) and ifnet_baudrate(ifnet_t interface) to get
> MTU and baudrate. I think the link speed is baudrate in bits per second.
> Here I am getting proper MTU but baudrate always I am getting is 10000000. I
> check the link speed in property from IORegistry and it is different from
> what I am getting. Can someone explain me, how can I measure the link speed
> on any Ethernet interface.
>
> Thanks and regards
> Rakesh
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Darwin-kernel mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
>
> This email sent to email@hidden
>
--
-mmw
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden