Enable Broadcast RX unconditionally

git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3127 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
patacongo 2010-11-25 02:44:23 +00:00
parent f56992821c
commit 2978ada510

View File

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