Module Name: src
Committed By: msaitoh
Date: Thu May 23 16:49:46 UTC 2013
Modified Files:
src/sys/netinet6: ip6_flow.c
Log Message:
Clear mbuf's csum_flags in ip6flow_fastforward(). Fixes PR#47849.
To generate a diff of this commit:
cvs rdiff -u -r1.20 -r1.21 src/sys/netinet6/ip6_flow.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_flow.c
diff -u src/sys/netinet6/ip6_flow.c:1.20 src/sys/netinet6/ip6_flow.c:1.21
--- src/sys/netinet6/ip6_flow.c:1.20 Thu Oct 11 20:05:50 2012
+++ src/sys/netinet6/ip6_flow.c Thu May 23 16:49:46 2013
@@ -1,4 +1,4 @@
-/* $NetBSD: ip6_flow.c,v 1.20 2012/10/11 20:05:50 christos Exp $ */
+/* $NetBSD: ip6_flow.c,v 1.21 2013/05/23 16:49:46 msaitoh Exp $ */
/*-
* Copyright (c) 2007 The NetBSD Foundation, Inc.
@@ -38,7 +38,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ip6_flow.c,v 1.20 2012/10/11 20:05:50 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ip6_flow.c,v 1.21 2013/05/23 16:49:46 msaitoh Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -288,6 +288,11 @@ ip6flow_fastforward(struct mbuf **mp)
return 0;
}
+ /*
+ * Clear any in-bound checksum flags for this packet.
+ */
+ m->m_pkthdr.csum_flags = 0;
+
if (ip6->ip6_hlim <= IPV6_HLIMDEC)
return 0;