iphdr->hlen includes the IP header, so truncate packet *before*
authorMichael Brown <mcb30@etherboot.org>
Wed, 9 Aug 2006 11:52:53 +0000 (11:52 +0000)
committerMichael Brown <mcb30@etherboot.org>
Wed, 9 Aug 2006 11:52:53 +0000 (11:52 +0000)
commit867c7aef5935be3b78db7765cb5cd14d3e42b189
tree7337afc91524ee4f20a2eee4c9427acb21cdbbf1
parentee9ae8130a7acfbc6a96dd86cf6cf62569e68169
iphdr->hlen includes the IP header, so truncate packet *before*
stripping the header.  Also fix an htons/ntohs confusion.
src/net/ipv4.c