Wrong header length used for certain reassembled IP packets.

This was first fixed in rev 1.82 but then broken in rev 1.125.

PR:		6177
This commit is contained in:
Ruslan Ermilov 2000-10-26 12:18:13 +00:00
parent 302bbfaac9
commit 7e2df4520d

View File

@ -686,10 +686,10 @@ ip_input(struct mbuf *m)
#endif
return;
}
/* Get the length of the reassembled packets header */
hlen = IP_VHL_HL(ip->ip_vhl) << 2;
ipstat.ips_reassembled++;
ip = mtod(m, struct ip *);
/* Get the header length of the reassembled packet */
hlen = IP_VHL_HL(ip->ip_vhl) << 2;
#ifdef IPDIVERT
/* Restore original checksum before diverting packet */
if (divert_info != 0) {