Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-7]: src/sys/net/npf Pull up following revision(s) (requested by m...
details: https://anonhg.NetBSD.org/src/rev/6befe3191014
branches: netbsd-7
changeset: 799763:6befe3191014
user: riz <riz%NetBSD.org@localhost>
date: Tue Jan 26 01:27:21 2016 +0000
description:
Pull up following revision(s) (requested by mlelstv in ticket #1065):
sys/net/npf/npf_mbuf.c: revision 1.15
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 91ebb394745e -r 6befe3191014 sys/net/npf/npf_mbuf.c
--- a/sys/net/npf/npf_mbuf.c Tue Jan 26 01:25:32 2016 +0000
+++ b/sys/net/npf/npf_mbuf.c Tue Jan 26 01:27:21 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: npf_mbuf.c,v 1.13.2.1 2015/07/17 04:37:22 snj Exp $ */
+/* $NetBSD: npf_mbuf.c,v 1.13.2.2 2016/01/26 01:27:21 riz 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.13.2.1 2015/07/17 04:37:22 snj Exp $");
+__KERNEL_RCSID(0, "$NetBSD: npf_mbuf.c,v 1.13.2.2 2016/01/26 01:27:21 riz 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