-/* $OpenBSD: ip_icmp.c,v 1.3 1996/03/03 22:30:35 niklas Exp $ */
+/* $OpenBSD: ip_icmp.c,v 1.4 1996/05/07 15:20:23 mickey Exp $ */
/* $NetBSD: ip_icmp.c,v 1.19 1996/02/13 23:42:22 christos Exp $ */
/*
m = m_gethdr(M_DONTWAIT, MT_HEADER);
if (m == NULL)
goto freeit;
- icmplen = oiplen + min(8, oip->ip_len);
+ icmplen = oiplen + oip->ip_len;
m->m_len = icmplen + ICMP_MINLEN;
MH_ALIGN(m, m->m_len);
icp = mtod(m, struct icmp *);
-/* $OpenBSD: ip_input.c,v 1.11 1996/04/21 22:29:00 deraadt Exp $ */
+/* $OpenBSD: ip_input.c,v 1.12 1996/05/07 15:20:25 mickey Exp $ */
/* $NetBSD: ip_input.c,v 1.30 1996/03/16 23:53:58 christos Exp $ */
/*
}
/*
- * Save at most 64 bytes of the packet in case
+ * Save at most 68 bytes of the packet in case
* we need to generate an ICMP message to the src.
*/
- mcopy = m_copy(m, 0, imin((int)ip->ip_len, 64));
+ mcopy = m_copy(m, 0, imin((int)ip->ip_len, 68));
/*
* If forwarding packet using same interface that it came in on,