Re: NdisGetReceivedPacket doesn't work in NDIS IM ????
- From: "Thomas F. Divine [DDK MVP]" <tdivine@xxxxxxxxxxxxxxxx>
- Date: Sun, 18 Jun 2006 04:04:54 GMT
"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<Snip>
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.
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
.
- References:
- NdisGetReceivedPacket doesn't work in NDIS IM ????
- From: Hien Nguyen
- NdisGetReceivedPacket doesn't work in NDIS IM ????
- Prev by Date: Re: windows noob needs pointers to writing a device driver
- Next by Date: Re: windows noob needs pointers to writing a device driver
- Previous by thread: NdisGetReceivedPacket doesn't work in NDIS IM ????
- Next by thread: LookAside lists question
- Index(es):
Relevant Pages
|