none
Ndis driver not sending broadcast packet RRS feed

  • Question

  • Hi,

    I wrote a NDIS driver and it seems to work great up to now. Unfortunately, when I try to send broadcast packets, they don't seems to make their way down to my ndis driver. I initialized the thing with this:

            pAdapter->dwPacketFilter = NDIS_PACKET_TYPE_DIRECTED   | 
                NDIS_PACKET_TYPE_MULTICAST  | 
                NDIS_PACKET_TYPE_BROADCAST  | 
                NDIS_PACKET_TYPE_PROMISCUOUS;
    ...
    generalAttributes.SupportedPacketFilters = pAdapter->dwPacketFilter;

    Also, both query and set support the OID OID_GEN_CURRENT_PACKET_FILTER.

    Do you have any idea about why no broadcast packets are making their way to my driver?

    Thanks

    David


    • Edited by David Mercier Tuesday, February 4, 2014 4:33 PM bad words
    Tuesday, February 4, 2014 4:32 PM

All replies

  • Found it... The broadcast address was not correct according to the netmask.

    address was: 101.0.0.1

    broadcast add was: 101.255.255.255

    netmask was: 255.255.255.0

    good broadcast should have been: 101.0.0.255

    Fixed!

    Tuesday, February 4, 2014 6:28 PM