From 53853a25b0c879e8625c7cdd40b9e9f8d3d10930 Mon Sep 17 00:00:00 2001 From: Sylvain Rochet Date: Sun, 24 Jan 2016 02:16:03 +0100 Subject: [PATCH] PPP, report full packet size in VJ debug output Signed-off-by: Sylvain Rochet --- 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 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;