From 70b60bbe16089b03d2c85e96025569a60f50b888 Mon Sep 17 00:00:00 2001 From: Sylvain Rochet Date: Mon, 9 Mar 2015 23:14:30 +0100 Subject: [PATCH] PPP, display correct pbuf size in ppp_input() debug messages --- src/netif/ppp/ppp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/netif/ppp/ppp.c b/src/netif/ppp/ppp.c index 6c7430b9..703f86f5 100644 --- a/src/netif/ppp/ppp.c +++ b/src/netif/ppp/ppp.c @@ -678,13 +678,13 @@ void ppp_input(ppp_pcb *pcb, struct pbuf *pb) { switch(protocol) { case PPP_IP: /* Internet Protocol */ - PPPDEBUG(LOG_INFO, ("ppp_input[%d]: ip in pbuf len=%d\n", pcb->netif->num, pb->len)); + PPPDEBUG(LOG_INFO, ("ppp_input[%d]: ip in pbuf len=%d\n", pcb->netif->num, pb->tot_len)); ip_input(pb, pcb->netif); return; #if PPP_IPV6_SUPPORT case PPP_IPV6: /* Internet Protocol Version 6 */ - PPPDEBUG(LOG_INFO, ("ppp_input[%d]: ip6 in pbuf len=%d\n", pcb->netif->num, pb->len)); + PPPDEBUG(LOG_INFO, ("ppp_input[%d]: ip6 in pbuf len=%d\n", pcb->netif->num, pb->tot_len)); ip6_input(pb, pcb->netif); return; #endif /* PPP_IPV6_SUPPORT */