summaryrefslogtreecommitdiff
path: root/net/ipv4.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/ipv4.c')
-rw-r--r--net/ipv4.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4.c b/net/ipv4.c
index aa8502e..b7e6a53 100644
--- a/net/ipv4.c
+++ b/net/ipv4.c
@@ -13,7 +13,7 @@ bool ipv4_incoming(struct netdev *dev,struct eth_hdr *hdr)
klog("ipv4 header len=%d",ipv4->ihl);
if(ipv4->proto==IPV4_P_ICMP)
{
- icmp_incoming(dev,((uint32_t *)ipv4)+ipv4->ihl,ntohs(ipv4->len)-ipv4->ihl*4);
+ icmp_incoming(dev,hdr);
}
return true;