mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2025-08-06 22:44:38 +08:00
PPP, display correct pbuf size in ppp_input() debug messages
This commit is contained in:
parent
aff890bce8
commit
70b60bbe16
@ -678,13 +678,13 @@ void ppp_input(ppp_pcb *pcb, struct pbuf *pb) {
|
|||||||
switch(protocol) {
|
switch(protocol) {
|
||||||
|
|
||||||
case PPP_IP: /* Internet Protocol */
|
case PPP_IP: /* Internet Protocol */
|
||||||
PPPDEBUG(LOG_INFO, ("ppp_input[%d]: ip in pbuf len=%d\n", pcb->netif->num, pb->len));
|
PPPDEBUG(LOG_INFO, ("ppp_input[%d]: ip in pbuf len=%d\n", pcb->netif->num, pb->tot_len));
|
||||||
ip_input(pb, pcb->netif);
|
ip_input(pb, pcb->netif);
|
||||||
return;
|
return;
|
||||||
|
|
||||||
#if PPP_IPV6_SUPPORT
|
#if PPP_IPV6_SUPPORT
|
||||||
case PPP_IPV6: /* Internet Protocol Version 6 */
|
case PPP_IPV6: /* Internet Protocol Version 6 */
|
||||||
PPPDEBUG(LOG_INFO, ("ppp_input[%d]: ip6 in pbuf len=%d\n", pcb->netif->num, pb->len));
|
PPPDEBUG(LOG_INFO, ("ppp_input[%d]: ip6 in pbuf len=%d\n", pcb->netif->num, pb->tot_len));
|
||||||
ip6_input(pb, pcb->netif);
|
ip6_input(pb, pcb->netif);
|
||||||
return;
|
return;
|
||||||
#endif /* PPP_IPV6_SUPPORT */
|
#endif /* PPP_IPV6_SUPPORT */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user