Hello, I'm developing an application using the LPC1857 Starter Kit. I need to filter the broadcast incoming packet.
I tried to set the MAC_FRAME_FILTER as in the follow:
LPC_ETHERNET->MAC_FRAME_FILTER = MFFR_DBF; /* Disable Broadcase Frames */
but in this way I can't receive any packet.
Could someone explain me how to set the Ethernet address to block broadcast packet?
Thanks in advance.
Giovanni
I need to filter the broadcast incoming packet.
Do you understand the ramifications of disabling detection of incoming broadcast packets?
Lots of normal network operations are likely to fail. First off, don't use DHCP to acquire a network address. It relies on broadcasts.
Not just DHCP likes broadcasts.
How fun when a computer/switch sends out an ARP request: Who has IP number x.y.z.w, and the unit with that IP number doesn't hear the broadcast, so will not respond back and inform about the MAC address to use.
That's why I said "First off ..." ;)
It is fun seeing how these budding developers seem to believe that they need to do these crazy things.
View all questions in Keil forum