Hi All,
I have a virtual adapter. The speed is hard-coded as 1Mbps. When it gets
connected, windows displays the speed as 1Mbps in bubble tool-tip. I want
the speed to be same as that of the actual NIC on the machine, or may be to
the speed of the LAN.
How can I do this?
Thanks and Regards
Vijender
Respond to OID_GEN_LINK_SPEED properly.
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com
----- Original Message -----
From: “Vijender”
To: “Windows System Software Devs Interest List”
Sent: Tuesday, March 29, 2005 10:14 AM
Subject: [ntdev] virtual adapter speed
> Hi All,
>
> I have a virtual adapter. The speed is hard-coded as 1Mbps. When it gets
> connected, windows displays the speed as 1Mbps in bubble tool-tip. I want
> the speed to be same as that of the actual NIC on the machine, or may be to
> the speed of the LAN.
>
> How can I do this?
>
> Thanks and Regards
> Vijender
>
>
> —
> Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: xxxxx@storagecraft.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com
HelloVijender,
I think you chose the wrong type of driver. Take a look at the
passthrough sample.
There are some other samples on the net that extend it’s the functionality.
Andrei
>Hi All,
>
>I have a virtual adapter. The speed is hard-coded as 1Mbps. When it gets
>connected, windows displays the speed as 1Mbps in bubble tool-tip. I want
>the speed to be same as that of the actual NIC on the machine, or may be to
>the speed of the LAN.
>
>How can I do this?
>
>Thanks and Regards
>Vijender
>
>
>—
>Questions? First check the Kernel Driver FAQ at
>
>
http://www.osronline.com/article.cfm?id=256
>You are currently subscribed to ntdev as: xxxxx@storagecraft.com
>To unsubscribe send a blank email to xxxxx@lists.osr.com
>
>
Questions? First check the Kernel Driver FAQ at http://www.osronline.com/article.cfm?id=256
You are currently subscribed to ntdev as: xxxxx@bitdefender.com
To unsubscribe send a blank email to xxxxx@lists.osr.com
–
Ignorance more frequently begets confidence than does knowledge.
— Charles Darwin
–
This message was scanned for spam and viruses by BitDefender.
For more information please visit http://linux.bitdefender.com/
Vijender wrote:
Hi All,
I have a virtual adapter. The speed is hard-coded as 1Mbps. When it gets
connected, windows displays the speed as 1Mbps in bubble tool-tip. I want
the speed to be same as that of the actual NIC on the machine, or may be to
the speed of the LAN.
“The actual NIC”. What does that mean to you? I have four network
adapters in several of my machines: two hardwired, one wireless, one
1394. Which one do you expect to copy? How will you choose?
If you are filtering some NIC, then you have a sensible solution. If
you are truly a virtual adapter, independent from the other NICs, then
there is no “actual NIC” for you to emulate. You might as well just
choose a random speed.
–
Hi,
I think the question of vijender is not clear. he has a virtual adapter which gets an IP someway. When querried for OID…LINK_SPEED, his driver responds with a hard-coded value. His virtual adapter might be routing all the data through the actual NIC on the machine. Although the LINK_SPEED is hardcoded to just 1 Mbps, he may be transfering the data at a higher rate or may be at a slower rate depening on the actual link speed.
I guess he wants to know how the actual NICs detect the link speed.
or if there is a way by which the negotiated link speed of the actual NIC can be queried by his NDIS miniport driver.
One possible solution is to query the link speed of the actual NIC using WMI from user space and then pass it to virtual adapter through the control device. but I think there should be a more simpler method to do this.
|
Regards;
Neeraj Kumar Jha
98195-37916
|
|
|
From: Andrei Zlate-Podani >Reply-To: “Windows System Software Devs Interest List” >To: “Windows System Software Devs Interest List” >Subject: Re: [ntdev] virtual adapter speed >Date: Tue, 29 Mar 2005 10:15:53 +0300 > >HelloVijender, > >I think you chose the wrong type of driver. Take a look at the >passthrough sample. >There are some other samples on the net that extend it’s the >functionality. > >Andrei > >>>Hi All, >>> >>>I have a virtual adapter. The speed is hard-coded as 1Mbps. When >>>it gets >>>connected, windows displays the speed as 1Mbps in bubble tool-tip. >>>I want >>>the speed to be same as that of the actual NIC on the machine, or
>>>may be to >>>the speed of the LAN. >>> >>>How can I do this? >>> >>>Thanks and Regards >>>Vijender >>> >>> >>>— >>>Questions? First check the Kernel Driver FAQ at >>> >>> >>http://www.osronline.com/article.cfm?id=256 >> >> >>>You are currently subscribed to ntdev as: xxxxx@storagecraft.com >>>To unsubscribe send a blank email to >>>xxxxx@lists.osr.com >>> >>> >> >> >>— >>Questions? First check the Kernel Driver FAQ at >>http://www.osronline.com/article.cfm?id=256 >> >>You are currently subscribed to ntdev as: xxxxx@bitdefender.com >>To unsubscribe send a blank email to >>xxxxx@lists.osr.com >> >> >>
>> > > >– >Ignorance more frequently begets confidence than does knowledge. >— Charles Darwin > > > >– >This message was scanned for spam and viruses by BitDefender. >For more information please visit http://linux.bitdefender.com/ > > >— >Questions? First check the Kernel Driver FAQ at >http://www.osronline.com/article.cfm?id=256 > >You are currently subscribed to ntdev as: xxxxx@hotmail.com >To unsubscribe send a blank email to >xxxxx@lists.osr.com
Want to meet David Beckham? Fly to Madrid with Gillette! Find out how!
Why not ask the actual NIC driver for speed by NdisRequest?
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com
----- Original Message -----
From: neeraj jha
To: Windows System Software Devs Interest List
Sent: Tuesday, March 29, 2005 9:55 PM
Subject: Re: [ntdev] virtual adapter speed
Hi,
I think the question of vijender is not clear. he has a virtual adapter which gets an IP someway. When querried for OID…LINK_SPEED, his driver responds with a hard-coded value. His virtual adapter might be routing all the data through the actual NIC on the machine. Although the LINK_SPEED is hardcoded to just 1 Mbps, he may be transfering the data at a higher rate or may be at a slower rate depening on the actual link speed.
I guess he wants to know how the actual NICs detect the link speed.
or if there is a way by which the negotiated link speed of the actual NIC can be queried by his NDIS miniport driver.
One possible solution is to query the link speed of the actual NIC using WMI from user space and then pass it to virtual adapter through the control device. but I think there should be a more simpler method to do this.
Regards;
Neeraj Kumar Jha
98195-37916
From: Andrei Zlate-Podani >Reply-To: “Windows System Software Devs Interest List” >To: “Windows System Software Devs Interest List” >Subject: Re: [ntdev] virtual adapter speed >Date: Tue, 29 Mar 2005 10:15:53 +0300 > >HelloVijender, > >I think you chose the wrong type of driver. Take a look at the >passthrough sample. >There are some other samples on the net that extend it’s the >functionality. > >Andrei > >>>Hi All, >>> >>>I have a virtual adapter. The speed is hard-coded as 1Mbps. When >>>it gets >>>connected, windows displays the speed as 1Mbps in bubble tool-tip. >>>I want >>>the speed to be same as that of the actual NIC on the machine, or >>>may be to >>>the speed of the LAN. >>> >>>How can I do this? >>> >>>Thanks and Regards >>>Vijender >>> >>> >>>— >>>Questions? First check the Kernel Driver FAQ at >>> >>> >>http://www.osronline.com/article.cfm?id=256 >> >> >>>You are currently subscribed to ntdev as: xxxxx@storagecraft.com >>>To unsubscribe send a blank email to >>>xxxxx@lists.osr.com >>> >>> >> >> >>— >>Questions? First check the Kernel Driver FAQ at >>http://www.osronline.com/article.cfm?id=256 >> >>You are currently subscribed to ntdev as: xxxxx@bitdefender.com >>To unsubscribe send a blank email to >>xxxxx@lists.osr.com >> >> >> >> > > >– >Ignorance more frequently begets confidence than does knowledge. >— Charles Darwin > > > >– >This message was scanned for spam and viruses by BitDefender. >For more information please visit http://linux.bitdefender.com/ > > >— >Questions? First check the Kernel Driver FAQ at >http://www.osronline.com/article.cfm?id=256 > >You are currently subscribed to ntdev as: xxxxx@hotmail.com >To unsubscribe send a blank email to >xxxxx@lists.osr.com
------------------------------------------------------------------------------
Want to meet David Beckham? Fly to Madrid with Gillette! Find out how! —
Questions? First check the Kernel Driver FAQ at http://www.osronline.com/article.cfm?id=256
You are currently subscribed to ntdev as: xxxxx@storagecraft.com
To unsubscribe send a blank email to xxxxx@lists.osr.com