0
votes

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..

1
Perhaps you could Get the destination address from the packet and work it out from there. - paddy
Once I get the destination address then how can I identify that it is unicast, multicast or broadcast packet.. - MM WDD
Unicast, multicast and broadcast addresses have different characteristics. Check out en.wikipedia.org/wiki/Multicast_address - paddy

1 Answers

1
votes

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.