문제

I am developing a NDIS driver. NDIS sends packet to miniport. How will I know that the packet comes from NDIS is unicast, multicast or broadcast packet.How to find out a packet is unicast, multicast or broadcast..

도움이 되었습니까?

해결책

If you are writing an Ethernet driver (or at least, your media is similar to IEEE 802's MAC) you can use the ETH_IS_BROADCAST and ETH_IS_MULTICAST macros from ndis.h. Anything not broadcast or multicast is unicast.

For a code sample, see NICGetFrameTypeFromDestination from the netvmini sample.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top