Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. =================================================================== RCS file: /ftp/cvs/cvsroot/src/sys/netinet/ip_input.c,v retrieving revision 1.212 retrieving revision 1.212.2.3 diff -u -p -r1.212 -r1.212.2.3 --- src/sys/netinet/ip_input.c 2005/02/26 22:45:12 1.212 +++ src/sys/netinet/ip_input.c 2007/09/17 20:14:21 1.212.2.3 @@ -1,4 +1,4 @@ -/* $NetBSD: ip_input.c,v 1.212 2005/02/26 22:45:12 perry Exp $ */ +/* $NetBSD: ip_input.c,v 1.212.2.3 2007/09/17 20:14:21 bouyer Exp $ */ /* * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project. @@ -98,7 +98,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: ip_input.c,v 1.212 2005/02/26 22:45:12 perry Exp $"); +__KERNEL_RCSID(0, "$NetBSD: ip_input.c,v 1.212.2.3 2007/09/17 20:14:21 bouyer Exp $"); #include "opt_inet.h" #include "opt_gateway.h" @@ -200,7 +200,6 @@ int ipprintfs = 0; #endif int ip_do_randomid = 0; -int ip_do_loopback_cksum = 0; /* * XXX - Setting ip_checkinterface mostly implements the receive side of @@ -1006,7 +1005,6 @@ found: /* XXX error stat??? */ error = EINVAL; DPRINTF(("ip_input: no SP, packet discarded\n"));/*XXX*/ - goto bad; } splx(s); if (error) @@ -1226,6 +1224,7 @@ insert: for (t = m; t; t = t->m_next) plen += t->m_len; m->m_pkthdr.len = plen; + m->m_pkthdr.csum_flags = 0; } return (m);