RE: Cann't set the packet filter... by bburgin
bburgin
Sat Jul 17 14:53:05 CDT 2004
------=_NextPart_0001_5F01C720
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
I assume that you mean that you're trying to set your packet filter as the
result of a protocol calling NdisRequest and NDIS calling your set handler.
I did not find ndis!MSyncSetInformation, and didn't expect to - but I also
looked for ndis!ndisMSyncSetInformation. Can you provide more information,
like the output of !analyze and a stack trace?
Generally, protocols send query and set requests to miniports via
NdisRequest. But in the case of setting the packet filter, NDIS intercepts
this call. This is because each protocol might (and probably) set
different filters. So, NDIS records the packet filter of each protocol and
then passes a request to the miniport that includes the union of all the
individual filters. But, still, once you get the request, you should
either just store it away or pass it to your hardware, etc, according to
your needs.
Bryan S. Burgin
bburgin@microsoft.com
This posting is provided "AS IS" with no warranties, and confers no rights.
------=_NextPart_0001_5F01C720
Content-Type: text/x-rtf
Content-Transfer-Encoding: 7bit
{\rtf1\ansi\ansicpg1252\deff0\deflang1033{\fonttbl{\f0\fnil\fprq2\fcharset0 MS Sans Serif;}}
\viewkind4\uc1\pard\f0\fs20
\par I assume that you mean that you're trying to set your packet filter as the result of a protocol calling NdisRequest and NDIS calling your set handler.
\par
\par I did not find ndis!MSyncSetInformation, and didn't expect to - but I also looked for ndis!ndisMSyncSetInformation. Can you provide more information, like the output of !analyze and a stack trace?
\par
\par Generally, protocols send query and set requests to miniports via NdisRequest. But in the case of setting the packet filter, NDIS intercepts this call. This is because each protocol might (and probably) set different filters. So, NDIS records the packet filter of each protocol and then passes a request to the miniport that includes the union of all the individual filters. But, still, once you get the request, you should either just store it away or pass it to your hardware, etc, according to your needs.
\par
\par Bryan S. Burgin
\par bburgin@microsoft.com
\par
\par This posting is provided "AS IS" with no warranties, and confers no rights.
\par }
------=_NextPart_0001_5F01C720--