Re: NdisGetReceivedPacket doesn't work in NDIS IM ????

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance




"Hien Nguyen" <thuchien@xxxxxxxxx> wrote in message
news:6BF12844-A0A7-4D82-B496-D78405C30A82@xxxxxxxxxxxxxxxx
I had try the passthruex part 2, but it not work properly. It doesnt filter
IP packet, event when I try testuiocrl to show the filter status, no IP
packet is proccesssed.

Then I try to modify it to filter ARP packet as follow. It can realize
ARP packet, it's fields. But when I try to modify the ARP packet. The
NdisGetReceivedPacket(pAdapt->BindingHandle, MacReceiveContext) doens't
work
well, and I always see "No packet receive!" but the network still work
well
and I can see the PtReceivePacket never work. What happens here???
The following is my code. In this FltFilterReceive, I modified to only
filt
ARP packet, and I sure it work well. I test the driver in the ethernet
connection with router modem ADSL, the ARP packet of that modem, always
add
18 byte as data of ARP packet. I try to modify this packet by strip this
18
bytes, only ARP header is encapsulate.

<Snip>
NEVER assume that NdisGetReceivePacket will return a packet. There are
several legitimate situations where no packet will be fetched.

Instead, base your implementation on fetching the packet data from the
HeaderBuffer and LookaheadBuffer.

Thomas F. Divine, Windows DDK MVP
http://www.rawether.net


.



Relevant Pages

  • Re: NdisGetReceivedPacket doesnt work in NDIS IM ???
    ... You must create a new NDIS_PACKET, the new memory area for the updated part ... > IP packet, event when I try testuiocrl to show the filter status, no IP ... > Then I try to modify it to filter ARP packet as follow. ... > Stt=NdisAllocateMemoryWithTag(&pNewPayload, ...
    (microsoft.public.development.device.drivers)
  • NdisGetReceivedPacket doesnt work in NDIS IM ????
    ... IP packet, event when I try testuiocrl to show the filter status, no IP ... Then I try to modify it to filter ARP packet as follow. ...
    (microsoft.public.development.device.drivers)
  • NdisGetReceivedPacket doesnt work in NDIS IM ???
    ... IP packet, event when I try testuiocrl to show the filter status, no IP ... Then I try to modify it to filter ARP packet as follow. ...
    (microsoft.public.development.device.drivers)
  • Re: NdisGetReceivedPacket doesnt work in NDIS IM ???
    ... You must create a new NDIS_PACKET, the new memory area for the updated part ... IP packet, event when I try testuiocrl to show the filter status, no IP ... Then I try to modify it to filter ARP packet as follow. ... Stt=NdisAllocateMemoryWithTag(&pNewPayload, ...
    (microsoft.public.development.device.drivers)
  • Re: NdisGetReceivedPacket doesnt work in NDIS IM ????
    ... > IP packet, event when I try testuiocrl to show the filter status, no IP ... > Then I try to modify it to filter ARP packet as follow. ... But when I try to modify the ARP packet. ...
    (microsoft.public.development.device.drivers)