Fixed mbed_lwip_get_netmask amd mbed_lwip_get_gateway

pull/2874/head
andreas.larsson 2016-10-04 16:40:15 +02:00
parent f5675cc822
commit 26eb5f19f2
1 changed files with 2 additions and 2 deletions

View File

@ -337,7 +337,7 @@ const char *mbed_lwip_get_netmask(char *buf, int buflen)
#if LWIP_IPV4
const ip4_addr_t *addr = netif_ip4_netmask(&lwip_netif);
if (!ip4_addr_isany(addr)) {
return inet_ntoa_r(addr, buf, buflen);
return ip4addr_ntoa_r(addr, buf, buflen);
} else {
return NULL;
}
@ -351,7 +351,7 @@ char *mbed_lwip_get_gateway(char *buf, int buflen)
#if LWIP_IPV4
const ip4_addr_t *addr = netif_ip4_gw(&lwip_netif);
if (!ip4_addr_isany(addr)) {
return inet_ntoa_r(addr, buf, buflen);
return ip4addr_ntoa_r(addr, buf, buflen);
} else {
return NULL;
}