diff options
| author | aozima <[email protected]> | 2018-05-09 21:26:43 +0800 |
|---|---|---|
| committer | aozima <[email protected]> | 2018-05-09 21:26:43 +0800 |
| commit | efadb37f4c8f872293d9bcb68cc9ec2a136d890d (patch) | |
| tree | 661c863cebef5c09cb5093201d7f34cf5e4e9feb /components/net | |
| parent | 47a0e4647836206db14e03d78894f7684652a2ba (diff) | |
[DHCPD] fixed compile error if use legacy LWIP.
Diffstat (limited to 'components/net')
| -rw-r--r-- | components/net/lwip_dhcpd/dhcp_server.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/components/net/lwip_dhcpd/dhcp_server.c b/components/net/lwip_dhcpd/dhcp_server.c index a71548e333..0a3cca6d3e 100644 --- a/components/net/lwip_dhcpd/dhcp_server.c +++ b/components/net/lwip_dhcpd/dhcp_server.c @@ -220,7 +220,11 @@ static void dhcpd_thread_entry(void *parameter) /* our DHCP server information */ { +#if (LWIP_VERSION) >= 0x02000000U ip4_addr_t addr; +#else + struct ip_addr addr; +#endif /* LWIP_VERSION */ ip4addr_aton(DHCPD_SERVER_IP, &addr); DHCPD_SERVER_IPADDR0 = (ntohl(addr.addr) >> 24) & 0xFF; |
