Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/net/npf handle delayed cksums also for ipv6
details: https://anonhg.NetBSD.org/src/rev/57d5b6da8546
branches: trunk
changeset: 342344:57d5b6da8546
user: mlelstv <mlelstv%NetBSD.org@localhost>
date: Thu Dec 17 12:16:21 2015 +0000
description:
handle delayed cksums also for ipv6
diffstat:
sys/net/npf/npf_mbuf.c | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
diffs (30 lines):
diff -r 8e858f1836bc -r 57d5b6da8546 sys/net/npf/npf_mbuf.c
--- a/sys/net/npf/npf_mbuf.c Thu Dec 17 08:55:10 2015 +0000
+++ b/sys/net/npf/npf_mbuf.c Thu Dec 17 12:16:21 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: npf_mbuf.c,v 1.14 2015/07/12 23:51:53 rmind Exp $ */
+/* $NetBSD: npf_mbuf.c,v 1.15 2015/12/17 12:16:21 mlelstv Exp $ */
/*-
* Copyright (c) 2009-2012 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: npf_mbuf.c,v 1.14 2015/07/12 23:51:53 rmind Exp $");
+__KERNEL_RCSID(0, "$NetBSD: npf_mbuf.c,v 1.15 2015/12/17 12:16:21 mlelstv Exp $");
#include <sys/param.h>
#include <sys/mbuf.h>
@@ -258,6 +258,11 @@
m->m_pkthdr.csum_flags &= ~(M_CSUM_TCPv4 | M_CSUM_UDPv4);
return true;
}
+ if (m->m_pkthdr.csum_flags & (M_CSUM_TCPv6 | M_CSUM_UDPv6)) {
+ in6_delayed_cksum(m);
+ m->m_pkthdr.csum_flags &= ~(M_CSUM_TCPv6 | M_CSUM_UDPv6);
+ return true;
+ }
return false;
}
Home |
Main Index |
Thread Index |
Old Index