Module Name: src
Committed By: sborrill
Date: Sat Nov 14 10:40:12 UTC 2009
Modified Files:
src/sys/netinet6 [netbsd-4]: ip6_forward.c
Log Message:
Pull up the following revisions(s) (requested by joerg in ticket #1366):
sys/netinet6/ip6_forward.c: revision 1.67
Clear cksum flags before any further processing like ip_forward does.
Many drivers set the UDP/TCP v4 flags even for v6 traffic and if the
packet is encapsulated with gif, the IPv6 header would get corrupted by
ip_output.
To generate a diff of this commit:
cvs rdiff -u -r1.49.8.1 -r1.49.8.2 src/sys/netinet6/ip6_forward.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/netinet6/ip6_forward.c
diff -u src/sys/netinet6/ip6_forward.c:1.49.8.1 src/sys/netinet6/ip6_forward.c:1.49.8.2
--- src/sys/netinet6/ip6_forward.c:1.49.8.1 Thu May 24 19:13:16 2007
+++ src/sys/netinet6/ip6_forward.c Sat Nov 14 10:40:12 2009
@@ -1,4 +1,4 @@
-/* $NetBSD: ip6_forward.c,v 1.49.8.1 2007/05/24 19:13:16 pavel Exp $ */
+/* $NetBSD: ip6_forward.c,v 1.49.8.2 2009/11/14 10:40:12 sborrill Exp $ */
/* $KAME: ip6_forward.c,v 1.109 2002/09/11 08:10:17 sakane Exp $ */
/*
@@ -31,7 +31,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ip6_forward.c,v 1.49.8.1 2007/05/24 19:13:16 pavel Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ip6_forward.c,v 1.49.8.2 2009/11/14 10:40:12 sborrill Exp $");
#include "opt_ipsec.h"
#include "opt_pfil_hooks.h"
@@ -120,6 +120,10 @@
int s;
#endif
+ /*
+ * Clear any in-bound checksum flags for this packet.
+ */
+ m->m_pkthdr.csum_flags = 0;
#ifdef IPSEC
/*