In the network panel, I can bind or unbind the protocol to a NIC. So, I
continue with ProtocolReceive function.
I use WinDbg to trace the debug message, seems like ProtocolReceive never
being called even if there is some data coming in for the NIC.
again, I am a beginner, so I really hope someone can guide me thru and let
me know if I miss something here, thanks.
regards,
c.k.
You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
The lower-level NDIS miniport driver will not indicate received packets to
your NDIS protocol driver until you set the NDIS packet filter. For Ethernet
see the DDK documentation for OID_GEN_CURRENT_PACKET_FILTER to understand
this feature.
Also, see the DDK “packet driver” or “NDISUIO driver” samples for
illustrations of setting the NDIS packet filter as well as other useful
ideas for creating a NDIS protocol driver.
“cksiow” wrote in message news:xxxxx@ntdev… > > hi, > > I am a beginner in driver development. I tried to develop a ndis protocol > driver. I have finish program the following function for a protocol > driver > > DriverEntry > DriverUnload > ProtocolBindAdapter > ProtocolUnbindAdapter > ProtocolOpenAdapterComplete > ProtocolCloseAdapterComplete > > In the network panel, I can bind or unbind the protocol to a NIC. So, I > continue with ProtocolReceive function. > > I use WinDbg to trace the debug message, seems like ProtocolReceive never > being called even if there is some data coming in for the NIC. > > again, I am a beginner, so I really hope someone can guide me thru and let > me know if I miss something here, thanks. > > regards, > c.k. > > — > You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’) > To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com > >
— You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’) To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com</http:></http:>
Pls do also try registering the ProtocolReceive and ProtocolReceivePacket
functions ,That depends on how the miniport that indicates.May be
mediumspecific(NdisMEthIndicate) or generic(NdisMIndicateReceivePacket).
Regards,
sriram.
You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
> I use WinDbg to trace the debug message, seems like ProtocolReceive never
being called even if there is some data coming in for the NIC.
Do not forget to set OID_GEN_CURRENT_PACKET_FILTER in your “open adapter complete” function.
This enables receives, which are disabled otherwise.
Max
You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com