summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhenning <henning@openbsd.org>2008-06-12 01:47:07 +0000
committerhenning <henning@openbsd.org>2008-06-12 01:47:07 +0000
commit79a1097d720b827be20ead82f24b8160ef147fd8 (patch)
tree9e05c183f5d1913d5ec3c6db5bcad3a9e9b0197f
parentBe more paranoid before disestablishing hook (diff)
downloadwireguard-openbsd-79a1097d720b827be20ead82f24b8160ef147fd8.tar.xz
wireguard-openbsd-79a1097d720b827be20ead82f24b8160ef147fd8.zip
undo r1.77 from 2004 - shrinking MINCLSIZE so that we always use a cluster
for data storage instead of another mbuf if it would fit. we did that change whiledoing the release and we thought there was a problem with this, which later turned out not to be true. surprise and ok theo
-rw-r--r--sys/sys/mbuf.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/sys/mbuf.h b/sys/sys/mbuf.h
index 3e9b95f9d72..eb5ce03ea04 100644
--- a/sys/sys/mbuf.h
+++ b/sys/sys/mbuf.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: mbuf.h,v 1.98 2008/06/11 02:46:35 henning Exp $ */
+/* $OpenBSD: mbuf.h,v 1.99 2008/06/12 01:47:07 henning Exp $ */
/* $NetBSD: mbuf.h,v 1.19 1996/02/09 18:25:14 christos Exp $ */
/*
@@ -47,7 +47,8 @@
#define MLEN (MSIZE - sizeof(struct m_hdr)) /* normal data len */
#define MHLEN (MLEN - sizeof(struct pkthdr)) /* data len w/pkthdr */
-#define MINCLSIZE (MHLEN + 1) /* smallest amount to put in cluster */
+/* smallest amount to put in cluster */
+#define MINCLSIZE (MHLEN + MLEN + 1)
#define M_MAXCOMPRESS (MHLEN / 2) /* max amount to copy for compression */
/* Packet tags structure */