mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-12-26 03:16:18 +00:00
PPP, PPPoL2TP: fix displayed length in debug message
Packet length is p->tot_len here, not len.
This commit is contained in:
parent
5bf9cebb54
commit
6b30cf62cc
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user