From 2bd498524d6f92da34ffe7ac14cfd1af78906522 Mon Sep 17 00:00:00 2001 From: goldsimon Date: Wed, 29 Jun 2011 19:46:21 +0000 Subject: [PATCH] Fixed bug #33653 (ip_data.current_ip_header_tot_len calculation errors!) introduced while mergin IPv4 and IPv6 --- src/core/ipv4/ip4.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/ipv4/ip4.c b/src/core/ipv4/ip4.c index 0aef63c2..3ec50b66 100644 --- a/src/core/ipv4/ip4.c +++ b/src/core/ipv4/ip4.c @@ -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? */