PPP, PPPoL2TP: fix displayed length in debug message

Packet length is p->tot_len here, not len.
This commit is contained in:
Sylvain Rochet 2020-10-18 02:28:58 +02:00
parent 5bf9cebb54
commit 6b30cf62cc

View File

@ -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) {