Skip to content
Snippets Groups Projects
Commit 92cd38d7 authored by patacongo's avatar patacongo
Browse files

Enable Broadcast RX unconditionally

git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3127 42af7a65-404d-4744-a932-0658087f49c3
parent 24450c3f
No related branches found
No related tags found
No related merge requests found
......@@ -1410,13 +1410,14 @@ static int lpc17_ifup(struct uip_driver_s *dev)
lpc17_putreg(regval, LPC17_ETH_MAC1);
/* Set up RX filter and configure to accept broadcast addresses, multicast
* addresses, and perfect station address matches.
* addresses, and perfect station address matches. We should also accept
* perfect matches and, most likely, broadcast (for example, for ARP requests).
* Other RX filter options will only be enabled if so selected. NOTE: There
* is a selection CONFIG_NET_BROADCAST, but this enables receipt of UDP
* broadcast packets inside of the stack.
*/
regval = ETH_RXFLCTRL_PERFEN;
#ifdef CONFIG_NET_BROADCAST
regval |= ETH_RXFLCTRL_BCASTEN;
#endif
regval = ETH_RXFLCTRL_PERFEN | ETH_RXFLCTRL_BCASTEN;
#ifdef CONFIG_NET_MULTICAST
RXFILTERCTRL |= (ETH_RXFLCTRL_MCASTEN | ETH_RXFLCTRL_UCASTEN);
#endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment