summaryrefslogtreecommitdiff
path: root/components/net
diff options
context:
space:
mode:
authorfengzi.rtt <[email protected]>2012-03-01 11:08:27 +0000
committerfengzi.rtt <[email protected]>2012-03-01 11:08:27 +0000
commit087da42d96115384f780730ce141a49f9c8d9841 (patch)
tree3be3eacf95218b7a8f6b135a69e7ab44724c7c63 /components/net
parentfeb4fa6df93f05cf15c873d562a6ba8601dc7a2a (diff)
fix a bug about IGMP in ethernetif.c
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1984 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'components/net')
-rw-r--r--components/net/lwip/src/netif/ethernetif.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/components/net/lwip/src/netif/ethernetif.c b/components/net/lwip/src/netif/ethernetif.c
index 5681bcc513..6e9c2c55aa 100644
--- a/components/net/lwip/src/netif/ethernetif.c
+++ b/components/net/lwip/src/netif/ethernetif.c
@@ -137,6 +137,11 @@ rt_err_t eth_device_init(struct eth_device* dev, const char* name)
netif->mtu = ETHERNET_MTU;
/* broadcast capability */
netif->flags = NETIF_FLAG_BROADCAST | NETIF_FLAG_ETHARP;
+
+#if LWIP_IGMP
+ /* igmp support */
+ netif->flags |= NETIF_FLAG_IGMP;
+#endif
/* get hardware address */
rt_device_control(&(dev->parent), NIOCTL_GADDR, netif->hwaddr);