阅读:1625回复:2
tdi filter 怎么得不到TDI_ACCEPT这样的消息?
我做了一个FILTER DRIVER ,挂在\\\\DEVICE\\TCP上的,外连可以得到TDI_CONNECT这样的消息通知,别人连接我我得不到
TDI_CONNECT & TDI_ACCEPT 这样的消息???是什么原因导致的???? :P :P :P |
|
最新喜欢:![]()
|
沙发#
发布于:2002-04-18 09:42
I\'ve read the ddk document more detail, but i think the client will be build a internal IRP send to tdi when it want to listen a remote connect, then my driver will receive at least one of TDI_LISTEN or TDI_ACCEPT, but it receive none of them ??
what is the problem??and why?? |
|
|
板凳#
发布于:2002-04-17 15:03
TDI_xxxx这些请求应该是上层驱动(TDI Client)发出的
别人连进来,不是上层驱动发出的请求 而是下层驱动先得到 消息,然后通知上层的驱动,所以应该在Client Event Callback 里截获,下面引自DDK ClientEventConnect NTSTATUS ClientEventConnect (.......); ClientEventConnect is an event handler the TDI driver calls in response to an incoming endpoint-to-endpoint connection offer from a remote node. TDI_CONNECT When a kernel-mode client makes a TDI_CONNECT request, it asks the underlying TDI transport driver to offer a connection on a particular local-node connection endpoint to a remote-node peer. |
|