Skip to content

Commit

Permalink
handle delayed cksums also for ipv6
Browse files Browse the repository at this point in the history
  • Loading branch information
mlelstv committed Dec 17, 2015
1 parent 39329f9 commit ea52da6
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions sys/net/npf/npf_mbuf.c
@@ -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.
Expand Down Expand Up @@ -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>
Expand Down Expand Up @@ -258,6 +258,11 @@ nbuf_cksum_barrier(nbuf_t *nbuf, int di)
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;
}

Expand Down

0 comments on commit ea52da6

Please sign in to comment.