TDI Receive

I have some problems receiving data using TDI client.

Does anyone have good working examples. I prefere the method using

eventhandlers.

Rob Schalken

This is not reply but related question.

I have another big problem too but with TDI_EVENT_RECEIVE_DATAGRAM.

I have to return IRP for TDI_RECEIVE_DATAGRAM to TDI driver but my code’s
executing in DISPATCH level. Okay, I have pool of precreated IRPs and give
one from it. But where I can recreate new IRPs for this pool? Completion
routine is executing on DISPATCH level too. I think the right way is to
create new IRPs in separate thread but I hope there’s another way.

I can imagine only one possible solution. Do not receive fragmented UDP
datagrams.

vlad-ntdev

I have some problems receiving data using TDI client.

Does anyone have good working examples. I prefere the method using

eventhandlers.

Rob Schalken

IoAllocateIrp() is safe to call at dispatch level.

You might try setting *bytestaken = 0 to see if the TDI_RECEIVE_DATAGRAM
will then collect the entire datagram. - Eric

This posting is provided “AS IS” with no warranties, and confers no
rights.

-----Original Message-----
From: vlad-ntdev [mailto:xxxxx@unshadow.net]
Sent: Thursday, May 30, 2002 5:00 AM
To: NT Developers Interest List
Subject: [ntdev] Re: TDI Receive

This is not reply but related question.

I have another big problem too but with TDI_EVENT_RECEIVE_DATAGRAM.

I have to return IRP for TDI_RECEIVE_DATAGRAM to TDI driver but my
code’s executing in DISPATCH level. Okay, I have pool of precreated IRPs
and give one from it. But where I can recreate new IRPs for this pool?
Completion routine is executing on DISPATCH level too. I think the right
way is to create new IRPs in separate thread but I hope there’s another
way.

I can imagine only one possible solution. Do not receive fragmented UDP
datagrams.

vlad-ntdev

I have some problems receiving data using TDI client.

Does anyone have good working examples. I prefere the method using

eventhandlers.

Rob Schalken


You are currently subscribed to ntdev as: xxxxx@microsoft.com To
unsubscribe send a blank email to %%email.unsub%%

I think that you need a worker thread that watches your pool and creates
additional resources when they hit a “low-water” level.

Good luck,

Thomas F. Divine

PCAUSA - Tools & Resources For Network Software Developers
NDIS Protocol/Intermediate/Hooking - TDI Client/Filter
http: - http:

“vlad-ntdev” wrote in message news:xxxxx@ntdev…
>
> This is not reply but related question.
>
> I have another big problem too but with TDI_EVENT_RECEIVE_DATAGRAM.
>
> I have to return IRP for TDI_RECEIVE_DATAGRAM to TDI driver but my code’s
> executing in DISPATCH level. Okay, I have pool of precreated IRPs and give
> one from it. But where I can recreate new IRPs for this pool? Completion
> routine is executing on DISPATCH level too. I think the right way is to
> create new IRPs in separate thread but I hope there’s another way.
>
> I can imagine only one possible solution. Do not receive fragmented UDP
> datagrams.
>
> vlad-ntdev
>
> > I have some problems receiving data using TDI client.
> >
> > Does anyone have good working examples. I prefere the method using
> >
> > eventhandlers.
> >
> > Rob Schalken
> >
>
>
>
></http:></http:>

Do not call TdiBuildInternalDeviceControlIrp, call
IoAllocateIrp+manual filling instead, you can do this on
DISPATCH_LEVEL.

Max

----- Original Message -----
From: “vlad-ntdev”
To: “NT Developers Interest List”
Sent: Thursday, May 30, 2002 3:59 PM
Subject: [ntdev] Re: TDI Receive

> This is not reply but related question.
>
> I have another big problem too but with TDI_EVENT_RECEIVE_DATAGRAM.
>
> I have to return IRP for TDI_RECEIVE_DATAGRAM to TDI driver but my
code’s
> executing in DISPATCH level. Okay, I have pool of precreated IRPs
and give
> one from it. But where I can recreate new IRPs for this pool?
Completion
> routine is executing on DISPATCH level too. I think the right way is
to
> create new IRPs in separate thread but I hope there’s another way.
>
> I can imagine only one possible solution. Do not receive fragmented
UDP
> datagrams.
>
> vlad-ntdev
>
> > I have some problems receiving data using TDI client.
> >
> > Does anyone have good working examples. I prefere the method using
> >
> > eventhandlers.
> >
> > Rob Schalken
> >
>
>
>
> —
> You are currently subscribed to ntdev as: xxxxx@storagecraft.com
> To unsubscribe send a blank email to %%email.unsub%%
>