FIX: Setting the 'flags' to 0 will overwrite NETIF_FLAG_BROADCAST, see ethernetif.c line 140. Also, the IGMP check is redundant( see netif.c line 153).

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@731 bbd45198-f89e-11dd-88c7-29a3b14d5316
This commit is contained in:
mbbill 2010-05-23 19:25:06 +00:00
parent 0eaf2098b8
commit 289aa30c76
1 changed files with 15 additions and 14 deletions

View File

@ -101,7 +101,8 @@ netif_add(struct netif *netif, struct ip_addr *ipaddr, struct ip_addr *netmask,
netif->ip_addr.addr = 0;
netif->netmask.addr = 0;
netif->gw.addr = 0;
netif->flags = 0;
/* netif->flags = 0; */
#if LWIP_DHCP
/* netif not under DHCP control by default */
netif->dhcp = NULL;