From c259649f35faee8cbda3e8ddd3f96c5b71661d62 Mon Sep 17 00:00:00 2001 From: msaitoh Date: Thu, 23 May 2013 16:49:46 +0000 Subject: [PATCH] Clear mbuf's csum_flags in ip6flow_fastforward(). Fixes PR#47849. --- sys/netinet6/ip6_flow.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/sys/netinet6/ip6_flow.c b/sys/netinet6/ip6_flow.c index c659cc2f90bd..c818e862cb89 100644 --- a/sys/netinet6/ip6_flow.c +++ b/sys/netinet6/ip6_flow.c @@ -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 -__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 #include @@ -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;