Hi all ,

I am working on RNDIS device now and have a couple of questions on
this regard :

1. There are two fields in the REMOTE_NDIS_QUERY_MSG {
InformationBufferLength, InformationBufferOffset } . Those fields
indicate where the params for the specific query are located in the
transfer . The question is : where can I get a list of the structs
which are passed for each query ? I have searched in the MSDN and DDK
information , but nothing .
For example , for the OID_GEN_LINK_SPEED I see that the host passes
some params - but I dont know what they are .

2. I have noticed that params for the same query are different between
2K and XP . For example , for the same OID_GEN_LINK_SPEED 2K sends 4
bytes while XP sends about 40 . Does anyone know what is the deal
there ? Why is the difference ? Where can I see the list of
differences ?

thanks a lot
Oleg

RE: RNDIS question by bburgin

bburgin
Thu Aug 19 07:03:01 CDT 2004

------=_NextPart_0001_445502C1
Content-Type: text/plain
Content-Transfer-Encoding: 7bit


Oleg,

Regarding #1: A list of all the OIDs is in the DDK. Take a look at the
General Objects and the Ethernet Options at the bottom of this page:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/network/hh/
network/21oidovw_b5d8c785-211e-4d39-8007-1d38b3a1c888.xml.asp?frame=true.


Regarding #2: The RNDIS drivers for 2K and XP are the exact same driver --
except the Win2K drivers have a 'K' at the end of each driver's name, so
there should be no difference. In all queries, RNDIS should only be
sending the 4-byte OID value. Can you provide more detail (i.e. a hex dump
of the 40 bytes on XP). Also provide the build/version number of the
USB8023(K).SYS driver on both your test 2K box and your test XP box.

Bryan S. Burgin
bburgin@online.microsoft.com

This posting is provided "AS IS" with no warranties, and confers no rights.
------=_NextPart_0001_445502C1
Content-Type: text/x-rtf
Content-Transfer-Encoding: 7bit

{\rtf1\ansi\ansicpg1252\deff0\deflang1033{\fonttbl{\f0\fnil\fprq2\fcharset0 MS Sans Serif;}}
\viewkind4\uc1\pard\f0\fs20
\par Oleg,
\par
\par Regarding #1: A list of all the OIDs is in the DDK. Take a look at the General Objects and the Ethernet Options at the bottom of this page: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/network/hh/network/21oidovw_b5d8c785-211e-4d39-8007-1d38b3a1c888.xml.asp?frame=true.
\par
\par
\par Regarding #2: The RNDIS drivers for 2K and XP are the exact same driver -- except the Win2K drivers have a 'K' at the end of each driver's name, so there should be no difference. In all queries, RNDIS should only be sending the 4-byte OID value. Can you provide more detail (i.e. a hex dump of the 40 bytes on XP). Also provide the build/version number of the USB8023(K).SYS driver on both your test 2K box and your test XP box.
\par
\par Bryan S. Burgin
\par bburgin@online.microsoft.com
\par
\par This posting is provided "AS IS" with no warranties, and confers no rights.
\par }
------=_NextPart_0001_445502C1--


Re: RNDIS question by dworkin_om

dworkin_om
Sun Aug 22 05:23:54 CDT 2004

Hi Bryan ,

thanks for the help .

Versions of the dlls are :

2K : rndismpk.sys - 5.2.3667.0 ; usb8023k.dll - 5.2.3667.0
XP : rndismp.sys - 5.1.2600.0 ; usb8023.dll - 5.1.2600.0


Here is an example of the 0x00010107 RNDIS_OID_GEN_LINK_SPEED ( as
taken by an hardware bus analyzer , not a software logger which may be
error prone )

2K payload ( 0x20 bytes )
______________________________________________________________________________
: 04 00 00 00 20 00 00 00
: 10 00 00 00 07 01 01 00
: 04 00 00 00 14 00 00 00
: 00 00 00 00 48 8C FC 84
______________________________________________________________________________



XP payload ( please notice the 0x4C size )
______________________________________________________________________________
: 04 00 00 00 4C 00 00 00
: 0C 00 00 00 07 01 01 00
: 30 00 00 00 14 00 00 00
: 00 00 00 00 DC F9 5E 00
: A0 82 09 04 AA 9B F5 77
: B3 9B F5 77 68 F9 5E 00
: 24 00 02 00 00 BC FD 7F
: AB A3 F5 77 D0 F6 5E 00
: A0 B2 F5 77 00 F0 FD 7F
: 24 F6 5E 00
______________________________________________________________________________


thanks a lot ,
Oleg

Re: RNDIS question by bburgin

bburgin
Sun Aug 22 18:00:20 CDT 2004

------=_NextPart_0001_5621FE18
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

Thanks for the version information. In July we updated the RNDIS drivers,
and accordingly, the RNDIS kit. Since the 2K drivers are redistributed by
you, the 2K binaries you are shipping are the drivers that are the result
of the changes. Since the XP drivers are in-box, the changes were rolled
up in XPSP2, which is now available.

When you apply XPSP2, I expect that you'll see the same result between the
2K drivers and XPSP2.

As soon as I get in front of a machine with the right tools I'll comment
further on the details of the packets and your original question.

Bryan S. Burgin
bburgin@online.microsoft.com

This posting is provided "AS IS" with no warranties, and confers no rights.
------=_NextPart_0001_5621FE18
Content-Type: text/x-rtf
Content-Transfer-Encoding: 7bit

{\rtf1\ansi\ansicpg1252\deff0\deflang1033{\fonttbl{\f0\fnil\fprq2\fcharset0 MS Sans Serif;}}
\viewkind4\uc1\pard\f0\fs20 Thanks for the version information. In July we updated the RNDIS drivers, and accordingly, the RNDIS kit. Since the 2K drivers are redistributed by you, the 2K binaries you are shipping are the drivers that are the result of the changes. Since the XP drivers are in-box, the changes were rolled up in XPSP2, which is now available.
\par
\par When you apply XPSP2, I expect that you'll see the same result between the 2K drivers and XPSP2.
\par
\par As soon as I get in front of a machine with the right tools I'll comment further on the details of the packets and your original question.
\par
\par Bryan S. Burgin
\par bburgin@online.microsoft.com
\par
\par This posting is provided "AS IS" with no warranties, and confers no rights.
\par
\par }
------=_NextPart_0001_5621FE18--


Re: RNDIS question by dworkin_om

dworkin_om
Mon Aug 23 09:25:59 CDT 2004

Thanks a lot(!) , Bryan , for the information .

I will try to download the XPSP2 and see what happens .
Still, if you can comment on the data I sent you previously (
regarding an OID ) - it will be greatly appreciated .

thanks again
Oleg