From 6b30cf62cc484e0adbba062c31c5f31cc05a5b49 Mon Sep 17 00:00:00 2001 From: Sylvain Rochet Date: Sun, 18 Oct 2020 02:28:58 +0200 Subject: [PATCH] PPP, PPPoL2TP: fix displayed length in debug message Packet length is p->tot_len here, not len. --- src/netif/ppp/pppol2tp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/netif/ppp/pppol2tp.c b/src/netif/ppp/pppol2tp.c index 15ea2ae5..9cf06f4d 100644 --- a/src/netif/ppp/pppol2tp.c +++ b/src/netif/ppp/pppol2tp.c @@ -440,7 +440,7 @@ static void pppol2tp_input(void *arg, struct udp_pcb *pcb, struct pbuf *p, const /* printf("LEN=%d, TUNNEL_ID=%d, SESSION_ID=%d, NS=%d, NR=%d, OFFSET=%d\n", len, tunnel_id, session_id, ns, nr, offset); */ PPPDEBUG(LOG_DEBUG, ("pppol2tp: input packet, len=%"U16_F", tunnel=%"U16_F", session=%"U16_F", ns=%"U16_F", nr=%"U16_F"\n", - len, tunnel_id, session_id, ns, nr)); + p->tot_len, tunnel_id, session_id, ns, nr)); /* Control packet */ if (hflags & PPPOL2TP_HEADERFLAG_CONTROL) {