Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: Baudrate of Ethernet interface
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Baudrate of Ethernet interface



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

References: 
 >Baudrate of Ethernet interface (From: "Rakesh Singhal" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.