mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-11-04 23:29:25 +00:00
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:
parent
bf1285e3c9
commit
bb31fbd737
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user