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:
parent
0eaf2098b8
commit
289aa30c76
|
@ -101,7 +101,8 @@ netif_add(struct netif *netif, struct ip_addr *ipaddr, struct ip_addr *netmask,
|
||||||
netif->ip_addr.addr = 0;
|
netif->ip_addr.addr = 0;
|
||||||
netif->netmask.addr = 0;
|
netif->netmask.addr = 0;
|
||||||
netif->gw.addr = 0;
|
netif->gw.addr = 0;
|
||||||
netif->flags = 0;
|
/* netif->flags = 0; */
|
||||||
|
|
||||||
#if LWIP_DHCP
|
#if LWIP_DHCP
|
||||||
/* netif not under DHCP control by default */
|
/* netif not under DHCP control by default */
|
||||||
netif->dhcp = NULL;
|
netif->dhcp = NULL;
|
||||||
|
|
Loading…
Reference in New Issue