diff options
author | Niels Provos <provos@cvs.openbsd.org> | 2001-05-17 18:41:51 +0000 |
---|---|---|
committer | Niels Provos <provos@cvs.openbsd.org> | 2001-05-17 18:41:51 +0000 |
commit | bff2b5c93dc47bb0d17d1480618ead119fc3a4c0 (patch) | |
tree | a86b2f3d063adb61db0fb67479d25ee1e6437a6a /sys/netinet/ip_esp.c | |
parent | af8da448cf644f7e1e008d634771b23915ab7402 (diff) |
convert mbuf and cluster allocation to pool, mostly from NetBSD
okay art@ miod@
Diffstat (limited to 'sys/netinet/ip_esp.c')
-rw-r--r-- | sys/netinet/ip_esp.c | 6 |
1 files changed, 2 insertions, 4 deletions
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; |