fix a bug about IGMP in ethernetif.c

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1984 bbd45198-f89e-11dd-88c7-29a3b14d5316
This commit is contained in:
fengzi.rtt 2012-03-01 11:08:27 +00:00
parent feb4fa6df9
commit 087da42d96
1 changed files with 5 additions and 0 deletions

View File

@ -137,6 +137,11 @@ rt_err_t eth_device_init(struct eth_device* dev, const char* name)
netif->mtu = ETHERNET_MTU; netif->mtu = ETHERNET_MTU;
/* broadcast capability */ /* broadcast capability */
netif->flags = NETIF_FLAG_BROADCAST | NETIF_FLAG_ETHARP; netif->flags = NETIF_FLAG_BROADCAST | NETIF_FLAG_ETHARP;
#if LWIP_IGMP
/* igmp support */
netif->flags |= NETIF_FLAG_IGMP;
#endif
/* get hardware address */ /* get hardware address */
rt_device_control(&(dev->parent), NIOCTL_GADDR, netif->hwaddr); rt_device_control(&(dev->parent), NIOCTL_GADDR, netif->hwaddr);