Is it allowed to indicate a packet using NdisMIndicateReceivePacket
where the NDIS_PACKET being indicated has only OOB media specific
information associated with it and buffer length set as 0. I want to
pass something up to my protocol adapter but do not want it to be in the
packet buffer. I want to store this information in the media specific
information and send an empty packet up. There are few filter drivers
between my miniport and my protocol adapter. The medium used for binding
is 802.3. Any help is much appreciated.
sincerely,
Vedvyas Shanbhogue
In a word, no.
Use a private status indication.
The packet must have at least a valid MAC packet. Without that, NDIS is (as
I recall) likely to throw it away in the packet filter logic. Expecting
such a thing to traverse OPC (other peoples code) is dangerous. Most IM
drivers would toss such a thing out as well or worse, some might crash.
Status indications, on the other hand, generally make it through because
they simply carry an opaque information pointer and are syncronous. Most IM
drivers will simply pass through a status indication that is not recognized.
Good Luck,
Dave Cattley
Consulting Engineer
Systems Software Development
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Shanbhogue, Vedvyas
Sent: Thursday, March 23, 2006 3:55 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] Sending an empty NDIS_PACKET
Is it allowed to indicate a packet using NdisMIndicateReceivePacket where
the NDIS_PACKET being indicated has only OOB media specific information
associated with it and buffer length set as 0. I want to pass something up
to my protocol adapter but do not want it to be in the packet buffer. I want
to store this information in the media specific information and send an
empty packet up. There are few filter drivers between my miniport and my
protocol adapter. The medium used for binding is 802.3. Any help is much
appreciated.
sincerely,
Vedvyas Shanbhogue
Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer
Why not use NdisMIndicateStatus instead?
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com
----- Original Message -----
From: “Shanbhogue, Vedvyas”
To: “Windows System Software Devs Interest List”
Sent: Thursday, March 23, 2006 12:55 PM
Subject: [ntdev] Sending an empty NDIS_PACKET
Is it allowed to indicate a packet using NdisMIndicateReceivePacket
where the NDIS_PACKET being indicated has only OOB media specific
information associated with it and buffer length set as 0. I want to
pass something up to my protocol adapter but do not want it to be in the
packet buffer. I want to store this information in the media specific
information and send an empty packet up. There are few filter drivers
between my miniport and my protocol adapter. The medium used for binding
is 802.3. Any help is much appreciated.
sincerely,
Vedvyas Shanbhogue
—
Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer
Thanks.
This is what I ended up doing - pass the NDIS_PACKET handle in a status
indication and have the protocol adapter return it to me using a OID
request when it is done. In the transmit direction send the handle of
the NDIS_PACKET to the miniport and have the miniport return the handle
back in a status indication when it is done.
sincerely,
Vedvyas Shanbhogue
EMP, IPSD/SSG
o:(503) 712 - 6969
callto://shanbhogue
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Maxim S.
Shatskih
Sent: Friday, April 07, 2006 6:11 PM
To: Windows System Software Devs Interest List
Subject: Re: [ntdev] Sending an empty NDIS_PACKET
Why not use NdisMIndicateStatus instead?
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com
----- Original Message -----
From: “Shanbhogue, Vedvyas”
To: “Windows System Software Devs Interest List”
Sent: Thursday, March 23, 2006 12:55 PM
Subject: [ntdev] Sending an empty NDIS_PACKET
Is it allowed to indicate a packet using NdisMIndicateReceivePacket
where the NDIS_PACKET being indicated has only OOB media specific
information associated with it and buffer length set as 0. I want to
pass something up to my protocol adapter but do not want it to be in the
packet buffer. I want to store this information in the media specific
information and send an empty packet up. There are few filter drivers
between my miniport and my protocol adapter. The medium used for binding
is 802.3. Any help is much appreciated.
sincerely,
Vedvyas Shanbhogue
—
Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer
—
Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer