From f93f24f3a5ca4692a28ab4970bbf158e1f486074 Mon Sep 17 00:00:00 2001 From: Miguel Date: Tue, 25 Sep 2018 21:46:15 +0200 Subject: pinging fool os works --- net/ipv4.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'net/ipv4.c') 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; -- cgit v1.2.3