diff options
| author | Miguel <m.i@gmx.at> | 2018-09-25 21:46:15 +0200 |
|---|---|---|
| committer | Miguel <m.i@gmx.at> | 2018-09-25 21:46:15 +0200 |
| commit | f93f24f3a5ca4692a28ab4970bbf158e1f486074 (patch) | |
| tree | 2263b4291d470b8b606ed899d10d352d02ee93ea /net/ipv4.c | |
| parent | b58e7bc7cb8ce4fc6f824761ac8ef3920e7dfcc1 (diff) | |
pinging fool os works
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; |
