NDIS 5.x to NDIS 6 migration - some questions

127 views
Skip to first unread message

Gammaraman

unread,
Nov 25, 2008, 2:01:01 PM11/25/08
to
Hi,

I am looking to port my WLAN miniport driver from NDIS 5.1 to NDIS 6.0. I am
trying to figure out what new NB/NBL APIs to use in place of the
NDIS_PACKET/NDIS_BUFFER APIs I was using previously.

Can someone comment on what NDIS6 APIs should be used for the following
NDIS5.x APIs/macros?

1. NdisUnchainBufferAtBack
2. NdisChainBufferAtBack

I know that what was a NET_BUFFER in 5.x is an MDL (chain) in 6.0 but I am
not able to find any APIs that allow tweaking the MDL chain. Do I have to
manually walk the MDL chain?

3. NdisReinitializePacket
4. NDIS_SET_PACKET_HEADER_SIZE

Do you know of any good links/resources that talk about API level changes
from a migration (5.1 to 6) perspective (something along the lines of if you
were using X on 5.1 use Y on 6, etc)?

Thanks.

Luv2Hike

unread,
Nov 25, 2008, 5:35:53 PM11/25/08
to
> Do you know of any good links/resources that talk about API level changes
> from a migration (5.1 to 6) perspective (something along the lines of if
> you
> were using X on 5.1 use Y on 6, etc)?

The WDK is always a good place to start. Look at this link
http://msdn.microsoft.com/en-us/library/ms795567.aspx for a good overview.
Also, the latest WDK has a NWF sample driver that you should follow closely
when porting your driver to NWF/NDIS 6.0.

"Gammaraman" <Gamma...@discussions.microsoft.com> wrote in message
news:4BDDA19C-4775-4F1B...@microsoft.com...

Alireza Dabagh [MS]

unread,
Nov 26, 2008, 1:40:11 AM11/26/08
to

There are no NDIS 6 equivalents for the first three functions and the last
one is not used in NDIS 6. You have to modify the MDL list in the NET_BUFFER
yourself.


-ali

--
This posting is provided "AS IS" with no warranties, and confers no rights.


"Gammaraman" <Gamma...@discussions.microsoft.com> wrote in message
news:4BDDA19C-4775-4F1B...@microsoft.com...

Gammaraman

unread,
Nov 26, 2008, 7:26:00 PM11/26/08
to
Thanks, Ali.

In my NDIS 5.x based driver, I use NDIS_SET_PACKET_HEADER_SIZE just before
indicating the RX packet to NDIS. So are you saying that a similar operation
is not required on NDIS 6? How does NDIS then know the size of the MAC header?

Alireza Dabagh [MS]

unread,
Nov 27, 2008, 8:21:06 AM11/27/08
to
NDIS doesn't need to know the header size and layers above know how to parse
the MAC header of an Ethernet packet.

-ali

"Gammaraman" <Gamma...@discussions.microsoft.com> wrote in message

news:6A29E3DA-E196-497A...@microsoft.com...

Gammaraman

unread,
Nov 28, 2008, 12:17:01 AM11/28/08
to
Thanks, Ali.

srikanth...@gmail.com

unread,
Jan 3, 2017, 5:31:57 AM1/3/17
to
Anyone plese help us in migrating NDIS IM 5.1 driver to NDIS 6.x?
Reply all
Reply to author
Forward
0 new messages