ip6: fix printing rx packet headers

The call to ip6_debug_print needs to be moved before the
next-header parsing code.

See bug #56708
This commit is contained in:
Simon Goldschmidt 2020-01-10 23:10:49 +01:00
parent bf1285e3c9
commit bb31fbd737

View File

@ -703,6 +703,10 @@ netif_found:
/* Init header length. */
hlen = hlen_tot = IP6_HLEN;
LWIP_DEBUGF(IP6_DEBUG, ("ip6_input: \n"));
ip6_debug_print(p);
LWIP_DEBUGF(IP6_DEBUG, ("ip6_input: p->len %"U16_F" p->tot_len %"U16_F"\n", p->len, p->tot_len));
/* Move to payload. */
pbuf_remove_header(p, IP6_HLEN);
@ -1042,10 +1046,6 @@ netif_found:
options_done:
/* send to upper layers */
LWIP_DEBUGF(IP6_DEBUG, ("ip6_input: \n"));
ip6_debug_print(p);
LWIP_DEBUGF(IP6_DEBUG, ("ip6_input: p->len %"U16_F" p->tot_len %"U16_F"\n", p->len, p->tot_len));
ip_data.current_ip_header_tot_len = hlen_tot;
#if LWIP_RAW