PPP: Documentation: replaced deprecated ip_ntoa() to ipaddr_ntoa()

This commit is contained in:
Sylvain Rochet 2015-03-08 13:57:26 +01:00
parent 969306f0f1
commit 4b5e867a69

View File

@ -79,14 +79,14 @@ static void status_cb(ppp_pcb *pcb, int err_code, void *ctx) {
#endif /* LWIP_DNS */
printf("status_cb: Connected\n");
#if PPP_IPV4_SUPPORT
printf(" our_ipaddr = %s\n", ip_ntoa(&pppif->ip_addr));
printf(" his_ipaddr = %s\n", ip_ntoa(&pppif->gw));
printf(" netmask = %s\n", ip_ntoa(&pppif->netmask));
printf(" our_ipaddr = %s\n", ipaddr_ntoa(&pppif->ip_addr));
printf(" his_ipaddr = %s\n", ipaddr_ntoa(&pppif->gw));
printf(" netmask = %s\n", ipaddr_ntoa(&pppif->netmask));
#if LWIP_DNS
ns = dns_getserver(0);
printf(" dns1 = %s\n", ip_ntoa(&ns));
printf(" dns1 = %s\n", ipaddr_ntoa(&ns));
ns = dns_getserver(1);
printf(" dns2 = %s\n", ip_ntoa(&ns));
printf(" dns2 = %s\n", ipaddr_ntoa(&ns));
#endif /* LWIP_DNS */
#endif /* PPP_IPV4_SUPPORT */
#if PPP_IPV6_SUPPORT