Module Name:    src
Committed By:   sborrill
Date:           Sat Nov 14 09:48:57 UTC 2009

Modified Files:
        src/sys/netinet6 [netbsd-5-0]: ip6_forward.c

Log Message:
Pull up the following revisions(s) (requested by joerg in ticket #1139):
        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.65 -r1.65.18.1 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.65 src/sys/netinet6/ip6_forward.c:1.65.18.1
--- src/sys/netinet6/ip6_forward.c:1.65	Wed Apr 23 06:09:05 2008
+++ src/sys/netinet6/ip6_forward.c	Sat Nov 14 09:48:57 2009
@@ -1,4 +1,4 @@
-/*	$NetBSD: ip6_forward.c,v 1.65 2008/04/23 06:09:05 thorpej Exp $	*/
+/*	$NetBSD: ip6_forward.c,v 1.65.18.1 2009/11/14 09:48:57 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.65 2008/04/23 06:09:05 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ip6_forward.c,v 1.65.18.1 2009/11/14 09:48:57 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
 	/*

Reply via email to