Re: Baudrate of Ethernet interface
site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=ofn9eso6bF3Q7UGYp6q1j5WW0qYN+y3dgt150im63Z4=; b=WCJpjelTbeixFXkS6law6ha/HXYGttNlz3tSYTbPAth+PB1psiBJNSq30idjuVFYYTnbnyoRdoZYkV9wSdLZfMd6+wjb0fgUByvvfbK/4dVGH+bWTr72B5KBoS5EXsMkdDVlSahdSZOIGhQl/Bw5++zc6xVJMhvY6BezxzRH4GI= Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=F70/I7whX8y+eNzevYv2+1qwJSInbzjnyGS4EQcWWbAqGcq5TdIyeqRCyHh04OjecUn4cbB/0Rkw7TyrMYDqDKnRGSRS/sirJB2VhIFr1yheAq9dk8RjQldXrgoj7c9QRaMpR1ox3YJHmAfZk2lQ8vwtgnS10X0JYXGrc2v7hpc= 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 <rakesh.singhal@gmail.com> 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 (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/darwin-kernel/openspecies%40gmail.com
This email sent to openspecies@gmail.com
-- -mmw _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-kernel mailing list (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-kernel/site_archiver%40lists.a... This email sent to site_archiver@lists.apple.com
participants (1)
-
mm w