* The code in this file was written by Eivind Eklund <perhaps@yes.no>,
* who places it in the public domain without restriction.
*
- * $OpenBSD: nat_cmd.c,v 1.4 2000/03/03 21:52:57 brian Exp $
+ * $OpenBSD: nat_cmd.c,v 1.5 2000/03/04 02:21:58 brian Exp $
*/
#include <sys/param.h>
/* Ensure there's a bit of extra buffer for the NAT code... */
bp = m_pullup(m_append(bp, NULL, NAT_EXTRABUF));
ret = PacketAliasIn(MBUF_CTOP(bp), bp->m_len);
+ pip = (struct ip *)MBUF_CTOP(bp);
bp->m_len = ntohs(pip->ip_len);
if (bp->m_len > MAX_MRU) {