FOR FAQ: TDI filter drivers

TDI filter drivers have to deal with the fact that they will receive IRPs
that do not always have enough stack locations to be forwarded down the
stack. This is a known design issue in the NT network stack implmentation.
Failure to handle this situation results in a BSOD due to no more irp stack
locations. The best practice is for the TDI filter driver to create new
IRPs, either for all IRPs it processes or for those that do not have enough
stack locations, forward the new IRPs, correlate the response in a
completion handler that then also completes the originalk IRP.

=====================
Mark Roddy
Hollis Technology Solutions
www.hollistech.com
xxxxx@hollistech.com

Mark,
I would like to add my observation as a comment to this. Correct
me if I am wrong. If TDI Driver is loaded at the right time while
booting after Tcpip is loaded and before any network drivers (referring
to clients like dhcp, netbt…) are loaded we would not see this
behaviour.
But if one wants a TDI filter driver which needs to work on
install with out reboot I believe what mark referred is a requirement.

-Srin.

-----Original Message-----
From: Roddy, Mark [mailto:xxxxx@stratus.com]
Sent: Thursday, July 24, 2003 7:53 AM
To: Windows System Software Developers Interest List
Subject: [ntdev] FOR FAQ: TDI filter drivers

TDI filter drivers have to deal with the fact that they will receive
IRPs
that do not always have enough stack locations to be forwarded down
the
stack. This is a known design issue in the NT network stack
implmentation.
Failure to handle this situation results in a BSOD due to no more irp
stack
locations. The best practice is for the TDI filter driver to create
new
IRPs, either for all IRPs it processes or for those that do not have
enough
stack locations, forward the new IRPs, correlate the response in a
completion handler that then also completes the originalk IRP.

=====================
Mark Roddy
Hollis Technology Solutions
www.hollistech.com
xxxxx@hollistech.com


You are currently subscribed to ntdev as: xxxxx@nai.com
To unsubscribe send a blank email to xxxxx@lists.osr.com