diff --git a/src/netif/ppp/ppp.c b/src/netif/ppp/ppp.c index aecd7a1c..30c6ffef 100644 --- a/src/netif/ppp/ppp.c +++ b/src/netif/ppp/ppp.c @@ -824,7 +824,7 @@ void ppp_input(ppp_pcb *pcb, struct pbuf *pb) { * Clip off the VJ header and prepend the rebuilt TCP/IP header and * pass the result to IP. */ - PPPDEBUG(LOG_INFO, ("ppp_input[%d]: vj_comp in pbuf len=%d\n", pcb->netif->num, pb->len)); + PPPDEBUG(LOG_INFO, ("ppp_input[%d]: vj_comp in pbuf len=%d\n", pcb->netif->num, pb->tot_len)); if (pcb->vj_enabled && vj_uncompress_tcp(&pb, &pcb->vj_comp) >= 0) { ip4_input(pb, pcb->netif); return; @@ -838,7 +838,7 @@ void ppp_input(ppp_pcb *pcb, struct pbuf *pb) { * Process the TCP/IP header for VJ header compression and then pass * the packet to IP. */ - PPPDEBUG(LOG_INFO, ("ppp_input[%d]: vj_un in pbuf len=%d\n", pcb->netif->num, pb->len)); + PPPDEBUG(LOG_INFO, ("ppp_input[%d]: vj_un in pbuf len=%d\n", pcb->netif->num, pb->tot_len)); if (pcb->vj_enabled && vj_uncompress_uncomp(pb, &pcb->vj_comp) >= 0) { ip4_input(pb, pcb->netif); return;