Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/netinet6 Use M_READONLY() rathern than testing to see if...
details: https://anonhg.NetBSD.org/src/rev/b7c5d3e14f8e
branches: trunk
changeset: 526210:b7c5d3e14f8e
user: thorpej <thorpej%NetBSD.org@localhost>
date: Sun Apr 28 00:54:41 2002 +0000
description:
Use M_READONLY() rathern than testing to see if ext_free is set
or MCLISREFERENCED().
diffstat:
sys/netinet6/ipsec.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 81dfed1a3553 -r b7c5d3e14f8e sys/netinet6/ipsec.c
--- a/sys/netinet6/ipsec.c Sun Apr 28 00:53:34 2002 +0000
+++ b/sys/netinet6/ipsec.c Sun Apr 28 00:54:41 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ipsec.c,v 1.43 2001/11/21 06:28:09 itojun Exp $ */
+/* $NetBSD: ipsec.c,v 1.44 2002/04/28 00:54:41 thorpej Exp $ */
/* $KAME: ipsec.c,v 1.125 2001/09/12 23:01:16 sakane Exp $ */
/*
@@ -35,7 +35,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ipsec.c,v 1.43 2001/11/21 06:28:09 itojun Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ipsec.c,v 1.44 2002/04/28 00:54:41 thorpej Exp $");
#include "opt_inet.h"
#include "opt_ipsec.h"
@@ -3418,7 +3418,7 @@
* references to the cluster.
* XXX: is this approach effective?
*/
- if (n->m_ext.ext_free || MCLISREFERENCED(n)) {
+ if (M_READONLY(n)) {
int remain, copied;
struct mbuf *mm;
Home |
Main Index |
Thread Index |
Old Index