提交 ee4da4b0 编写于 作者: B bernard.xiong@gmail.com

Add DHCP flag when LWIP_DHCP was defined.

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2230 bbd45198-f89e-11dd-88c7-29a3b14d5316
上级 1fc64916
......@@ -161,6 +161,11 @@ rt_err_t eth_device_init(struct eth_device * dev, char *name)
{
rt_uint8_t flags = NETIF_FLAG_BROADCAST | NETIF_FLAG_ETHARP;
#if LWIP_DHCP
/* DHCP support */
flags |= NETIF_FLAG_DHCP;
#endif
#if LWIP_IGMP
/* IGMP support */
flags |= NETIF_FLAG_IGMP;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册