- RE: Handling fragmentation in NDIS IM Driver
- Posted by Bryan S. Burgin [MSFT] on August 11th, 2003
Gilad,
You won't be able to rely on any particular behavior. Even if you were
able to get a guarantee from TCPIP - and you can't - there may be other IM
drivers between it and your IM driver that might follow different rules.
Bryan S. Burgin
bburgin@microsoft.com
This posting is provided "AS IS" with no warranties, and confers no rights.
- Posted by Gilad on August 12th, 2003
Does anyone have a sample code for IP fragmentation
handling in an NDIS driver? I tried to look for any
sample, but found that all the samples ignore this issue.
Furthermore, I since IM is deserialized I can get multiple
fragments at the same time - what is the best way to
handle this? Is there a data structure available (such as
a hash table) that I can use for this?
- Posted by Stephan Wolf on August 12th, 2003
As I said, copy fragmented packets to a local staging buffer. You can
"serialize" packet flow by using some packet queue mechanism and then
grabbing packets from the queue one by one and handle them. See
NdisInterlockedInsertTailList() etc.
Stephan
---
On Tue, 12 Aug 2003 05:50:28 -0700, "Gilad" <gilad@hotmail.com> wrote: