diff options
Diffstat (limited to 'net/ipv4.c')
| -rw-r--r-- | net/ipv4.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |
