Skip to content

Commit 26eb5f1

Browse files
author
andreas.larsson
committed
Fixed mbed_lwip_get_netmask amd mbed_lwip_get_gateway
1 parent f5675cc commit 26eb5f1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

features/FEATURE_LWIP/lwip-interface/lwip_stack.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ const char *mbed_lwip_get_netmask(char *buf, int buflen)
337337
#if LWIP_IPV4
338338
const ip4_addr_t *addr = netif_ip4_netmask(&lwip_netif);
339339
if (!ip4_addr_isany(addr)) {
340-
return inet_ntoa_r(addr, buf, buflen);
340+
return ip4addr_ntoa_r(addr, buf, buflen);
341341
} else {
342342
return NULL;
343343
}
@@ -351,7 +351,7 @@ char *mbed_lwip_get_gateway(char *buf, int buflen)
351351
#if LWIP_IPV4
352352
const ip4_addr_t *addr = netif_ip4_gw(&lwip_netif);
353353
if (!ip4_addr_isany(addr)) {
354-
return inet_ntoa_r(addr, buf, buflen);
354+
return ip4addr_ntoa_r(addr, buf, buflen);
355355
} else {
356356
return NULL;
357357
}

0 commit comments

Comments
 (0)