diff --git a/sys/netinet/ip_output.c b/sys/netinet/ip_output.c index de794fc6ccf4..9df2bc23c406 100644 --- a/sys/netinet/ip_output.c +++ b/sys/netinet/ip_output.c @@ -1,4 +1,4 @@ -/* $NetBSD: ip_output.c,v 1.172 2007/01/04 19:07:03 elad Exp $ */ +/* $NetBSD: ip_output.c,v 1.173 2007/01/08 04:14:54 yamt Exp $ */ /* * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project. @@ -98,7 +98,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: ip_output.c,v 1.172 2007/01/04 19:07:03 elad Exp $"); +__KERNEL_RCSID(0, "$NetBSD: ip_output.c,v 1.173 2007/01/08 04:14:54 yamt Exp $"); #include "opt_pfil_hooks.h" #include "opt_inet.h" @@ -820,6 +820,7 @@ spd_done: ip = mtod(m, struct ip *); hlen = ip->ip_hl << 2; + ip_len = ntohs(ip->ip_len); #endif /* PFIL_HOOKS */ m->m_pkthdr.csum_data |= hlen << 16;