Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/netinet6 Clear mbuf's csum_flags in ip6flow_fastforward(...
details: https://anonhg.NetBSD.org/src/rev/70c0fb4371e1
branches: trunk
changeset: 786936:70c0fb4371e1
user: msaitoh <msaitoh%NetBSD.org@localhost>
date: Thu May 23 16:49:46 2013 +0000
description:
Clear mbuf's csum_flags in ip6flow_fastforward(). Fixes PR#47849.
diffstat:
sys/netinet6/ip6_flow.c | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
diffs (30 lines):
diff -r c8ada7e1b3b3 -r 70c0fb4371e1 sys/netinet6/ip6_flow.c
--- a/sys/netinet6/ip6_flow.c Thu May 23 14:15:52 2013 +0000
+++ b/sys/netinet6/ip6_flow.c Thu May 23 16:49:46 2013 +0000
@@ -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 @@
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;
Home |
Main Index |
Thread Index |
Old Index