From bff2b5c93dc47bb0d17d1480618ead119fc3a4c0 Mon Sep 17 00:00:00 2001 From: Niels Provos Date: Thu, 17 May 2001 18:41:51 +0000 Subject: convert mbuf and cluster allocation to pool, mostly from NetBSD okay art@ miod@ --- sys/netinet/ip_esp.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'sys/netinet/ip_esp.c') diff --git a/sys/netinet/ip_esp.c b/sys/netinet/ip_esp.c index d927bd7525e..faedc72e53f 100644 --- a/sys/netinet/ip_esp.c +++ b/sys/netinet/ip_esp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ip_esp.c,v 1.58 2001/05/13 15:39:27 deraadt Exp $ */ +/* $OpenBSD: ip_esp.c,v 1.59 2001/05/17 18:41:47 provos Exp $ */ /* * The authors of this code are John Ioannidis (ji@tla.org), @@ -823,9 +823,7 @@ esp_output(struct mbuf *m, struct tdb *tdb, struct mbuf **mp, int skip, */ mi = m; while (mi != NULL && - (!(mi->m_flags & M_EXT) || - (mi->m_ext.ext_ref == NULL && - mclrefcnt[mtocl(mi->m_ext.ext_buf)] <= 1))) + (!(mi->m_flags & M_EXT) || !MCLISREFERENCED(mi))) { mo = mi; mi = mi->m_next; -- cgit v1.2.3