mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-12-25 00:14:02 +00:00
PPP: Documentation: replaced deprecated ip_ntoa() to ipaddr_ntoa()
This commit is contained in:
parent
969306f0f1
commit
4b5e867a69
10
doc/ppp.txt
10
doc/ppp.txt
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user