mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2025-08-06 22:44:38 +08: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. */
|
/* Init header length. */
|
||||||
hlen = hlen_tot = IP6_HLEN;
|
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. */
|
/* Move to payload. */
|
||||||
pbuf_remove_header(p, IP6_HLEN);
|
pbuf_remove_header(p, IP6_HLEN);
|
||||||
|
|
||||||
@ -1042,10 +1046,6 @@ netif_found:
|
|||||||
options_done:
|
options_done:
|
||||||
|
|
||||||
/* send to upper layers */
|
/* 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;
|
ip_data.current_ip_header_tot_len = hlen_tot;
|
||||||
|
|
||||||
#if LWIP_RAW
|
#if LWIP_RAW
|
||||||
|
Loading…
x
Reference in New Issue
Block a user