Fixed bug #33653 (ip_data.current_ip_header_tot_len calculation errors!) introduced while mergin IPv4 and IPv6

This commit is contained in:
goldsimon 2011-06-29 19:46:21 +00:00
parent 4b934945f3
commit 2bd498524d

View File

@ -470,7 +470,7 @@ ip_input(struct pbuf *p, struct netif *inp)
ip_data.current_netif = inp;
ip_data.current_ip4_header = iphdr;
ip_data.current_ip_header_tot_len = IPH_LEN(iphdr);
ip_data.current_ip_header_tot_len = IPH_HL(iphdr) * 4;
#if LWIP_RAW
/* raw input did not eat the packet? */