Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Vista Drivers > ndis 5.0 intermediate driver

Reply
Thread Tools Display Modes

ndis 5.0 intermediate driver

 
 
brahma
Guest
Posts: n/a

 
      05-29-2007
hi all,

i'm working on ndis 5.0 intermediate driver. Please tell me is there any way
to originate the packets from intermediate driver,not from the upper protocol
driver.If it is there, what is process to allocate packets and send it lower
drivers?

thanQ all.
 
Reply With Quote
 
 
 
 
Maxim S. Shatskih
Guest
Posts: n/a

 
      05-29-2007
Allocate NDIS_PACKET _from your own pool_, allocate NDIS_BUFFER to describe
the packet memory, chain it to the packet, fill the packet OOB fields
(forgotten the exact list, they are filled by macros like NDIS_SET_xxx) and
call NdisSend.

The issue is to distinguish this packet from the "upper" packets in
ProtocolSendComplete. Use the PacketPoolHandle field for this - if this is your
pool, then this is your packet, otherwise, it is the packet arrived from up.

--
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation

http://www.storagecraft.com

"brahma" <> wrote in message
news:61B91640-0170-44A2-8115-...
> hi all,
>
> i'm working on ndis 5.0 intermediate driver. Please tell me is there any way
> to originate the packets from intermediate driver,not from the upper protocol
> driver.If it is there, what is process to allocate packets and send it lower
> drivers?
>
> thanQ all.


 
Reply With Quote
 
brahma
Guest
Posts: n/a

 
      05-30-2007
hi Maxim S. Shatskih,

Thanks for ur reply... Could you please tell me something about OOB data...?
is it required...? And for what it will be used..?

thaQ again...

"Maxim S. Shatskih" wrote:

> Allocate NDIS_PACKET _from your own pool_, allocate NDIS_BUFFER to describe
> the packet memory, chain it to the packet, fill the packet OOB fields
> (forgotten the exact list, they are filled by macros like NDIS_SET_xxx) and
> call NdisSend.
>
> The issue is to distinguish this packet from the "upper" packets in
> ProtocolSendComplete. Use the PacketPoolHandle field for this - if this is your
> pool, then this is your packet, otherwise, it is the packet arrived from up.
>
> --
> Maxim Shatskih, Windows DDK MVP
> StorageCraft Corporation
>
> http://www.storagecraft.com
>
> "brahma" <> wrote in message
> news:61B91640-0170-44A2-8115-...
> > hi all,
> >
> > i'm working on ndis 5.0 intermediate driver. Please tell me is there any way
> > to originate the packets from intermediate driver,not from the upper protocol
> > driver.If it is there, what is process to allocate packets and send it lower
> > drivers?
> >
> > thanQ all.

>
>

 
Reply With Quote
 
Stephan Wolf [MVP]
Guest
Posts: n/a

 
      05-30-2007
On May 30, 12:11 pm, brahma <bra...@discussions.microsoft.com> wrote:
> hi Maxim S. Shatskih,
>
> Thanks for ur reply... Could you please tell me something about OOB data...?
> is it required...? And for what it will be used..?


Excerpt from the DDK docs:

"The NDIS_PACKET_OOB_DATA structure specifies out-of-band information
associated with a packet descriptor, used by drivers whose media
supplies, requires, or accepts out-of-band information, such as
information for an ATM NIC, and by drivers that support multipacket
receives and/or sends."

The following oob info is currently defined:

TimeToSend
TimeSent
TimeReceived
HeaderSize
SizeMediaSpecificInfo
MediaSpecificInformation
Status

Most of them are optional ('Status' and 'HeaderSize' are mandatory).
See the description on NDIS_PACKET_OOB_DATA for details.

Stephan

 
Reply With Quote
 
brahma
Guest
Posts: n/a

 
      05-30-2007
thanQ Stephan Wolf.


"Stephan Wolf [MVP]" wrote:

> On May 30, 12:11 pm, brahma <bra...@discussions.microsoft.com> wrote:
> > hi Maxim S. Shatskih,
> >
> > Thanks for ur reply... Could you please tell me something about OOB data...?
> > is it required...? And for what it will be used..?

>
> Excerpt from the DDK docs:
>
> "The NDIS_PACKET_OOB_DATA structure specifies out-of-band information
> associated with a packet descriptor, used by drivers whose media
> supplies, requires, or accepts out-of-band information, such as
> information for an ATM NIC, and by drivers that support multipacket
> receives and/or sends."
>
> The following oob info is currently defined:
>
> TimeToSend
> TimeSent
> TimeReceived
> HeaderSize
> SizeMediaSpecificInfo
> MediaSpecificInformation
> Status
>
> Most of them are optional ('Status' and 'HeaderSize' are mandatory).
> See the description on NDIS_PACKET_OOB_DATA for details.
>
> Stephan
>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
NDIS 6.0 MUX Intermediate driver imanandr Windows Vista Drivers 8 11-22-2006 09:30 PM
NDIS Intermediate Driver for 802.11 Ganesan Windows Vista Drivers 10 10-11-2004 01:02 AM
NDIS Intermediate driver for CE Jeff Ayers Windows Vista Drivers 1 09-04-2003 08:05 PM
NDIS Intermediate Driver. Bill Tang Windows Vista Drivers 1 07-15-2003 03:48 AM
Re: NDIS Intermediate Driver. Thomas F. Divine Windows Vista Drivers 0 07-14-2003 03:00 PM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59