mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2025-02-05 15:39:54 +00:00
fix compiler warnings when passing u16_t to pbuf_header()
This commit is contained in:
parent
e97f9fca22
commit
ee2d01ed88
@ -589,7 +589,7 @@ netif_found:
|
||||
goto ip6_input_cleanup;
|
||||
}
|
||||
|
||||
pbuf_header(p, -hlen);
|
||||
pbuf_header(p, -(s16_t)hlen);
|
||||
break;
|
||||
case IP6_NEXTH_DESTOPTS:
|
||||
LWIP_DEBUGF(IP6_DEBUG, ("ip6_input: packet with Destination options header\n"));
|
||||
@ -612,7 +612,7 @@ netif_found:
|
||||
goto ip6_input_cleanup;
|
||||
}
|
||||
|
||||
pbuf_header(p, -hlen);
|
||||
pbuf_header(p, -(s16_t)hlen);
|
||||
break;
|
||||
case IP6_NEXTH_ROUTING:
|
||||
LWIP_DEBUGF(IP6_DEBUG, ("ip6_input: packet with Routing header\n"));
|
||||
@ -635,7 +635,7 @@ netif_found:
|
||||
goto ip6_input_cleanup;
|
||||
}
|
||||
|
||||
pbuf_header(p, -hlen);
|
||||
pbuf_header(p, -(s16_t)hlen);
|
||||
break;
|
||||
|
||||
case IP6_NEXTH_FRAGMENT:
|
||||
@ -669,7 +669,7 @@ netif_found:
|
||||
PP_HTONS(IP6_FRAG_OFFSET_MASK | IP6_FRAG_MORE_FLAG)) == 0) {
|
||||
/* This is a 1-fragment packet, usually a packet that we have
|
||||
* already reassembled. Skip this header anc continue. */
|
||||
pbuf_header(p, -hlen);
|
||||
pbuf_header(p, -(s16_t)hlen);
|
||||
} else {
|
||||
#if LWIP_IPV6_REASS
|
||||
|
||||
@ -729,21 +729,21 @@ options_done:
|
||||
case IP6_NEXTH_UDPLITE:
|
||||
#endif /* LWIP_UDPLITE */
|
||||
/* Point to payload. */
|
||||
pbuf_header(p, -ip_data.current_ip_header_tot_len);
|
||||
pbuf_header(p, -(s16_t)ip_data.current_ip_header_tot_len);
|
||||
udp_input(p, inp);
|
||||
break;
|
||||
#endif /* LWIP_UDP */
|
||||
#if LWIP_TCP
|
||||
case IP6_NEXTH_TCP:
|
||||
/* Point to payload. */
|
||||
pbuf_header(p, -ip_data.current_ip_header_tot_len);
|
||||
pbuf_header(p, -(s16_t)ip_data.current_ip_header_tot_len);
|
||||
tcp_input(p, inp);
|
||||
break;
|
||||
#endif /* LWIP_TCP */
|
||||
#if LWIP_ICMP6
|
||||
case IP6_NEXTH_ICMP6:
|
||||
/* Point to payload. */
|
||||
pbuf_header(p, -ip_data.current_ip_header_tot_len);
|
||||
pbuf_header(p, -(s16_t)ip_data.current_ip_header_tot_len);
|
||||
icmp6_input(p, inp);
|
||||
break;
|
||||
#endif /* LWIP_ICMP */
|
||||
|
Loading…
x
Reference in New Issue
Block a user