From c5973dd4115213b5e7abac02171458072ab5df58 Mon Sep 17 00:00:00 2001 From: Sylvain Rochet Date: Sat, 21 Feb 2015 00:05:38 +0100 Subject: [PATCH] PPP, Documentation, minor fixes --- doc/ppp.txt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/ppp.txt b/doc/ppp.txt index c9812087..15427340 100644 --- a/doc/ppp.txt +++ b/doc/ppp.txt @@ -72,9 +72,9 @@ static void status_cb(ppp_pcb *pcb, int err_code, void *ctx) { LWIP_UNUSED_ARG(ctx); switch(err_code) { - case PPPERR_NONE: { /* No error. */ + case PPPERR_NONE: { struct ppp_addrs *ppp_addrs = ppp_addrs(pcb); - printf("status_cb: PPPERR_NONE\n"); + printf("status_cb: Connected\n"); printf(" our_ipaddr = %s\n", ip_ntoa(&ppp_addrs->our_ipaddr)); printf(" his_ipaddr = %s\n", ip_ntoa(&ppp_addrs->his_ipaddr)); printf(" netmask = %s\n", ip_ntoa(&ppp_addrs->netmask)); @@ -135,7 +135,7 @@ static void status_cb(ppp_pcb *pcb, int err_code, void *ctx) { break; } default: { - printf("status_cb: unknown err code %d\n", err_code); + printf("status_cb: Unknown error code %d\n", err_code); break; } } @@ -167,7 +167,7 @@ static void status_cb(ppp_pcb *pcb, int err_code, void *ctx) { * Creating a new PPPoS session * ============================ * - * In lwIP, PPPoS is not PPPoSONET, PPPoS is PPPoSerial in lwIP. + * In lwIP, PPPoS is not PPPoSONET, in lwIP PPPoS is PPPoSerial. */ #include "netif/ppp/pppos.h"