From e6f69040f0afcbffe92696e6024da38a88b459e4 Mon Sep 17 00:00:00 2001 From: kleink Date: Fri, 6 Jun 1997 16:37:41 +0000 Subject: [PATCH] Raise MINCLSIZE from (MHLEN + MLEN) to (MHLEN + MLEN + 1): MINCLSIZE is the "smallest amount to put in cluster", and (MHLEN + MLEN) is the largest amount amount of data that can be stored without clustering. Pointed out by Thorsten Frueauf with W. R. Stevens' TCP/IP Illustrated, Vol. 2, at hand. --- sys/sys/mbuf.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/sys/mbuf.h b/sys/sys/mbuf.h index 4df97733a133..ac7054de2257 100644 --- a/sys/sys/mbuf.h +++ b/sys/sys/mbuf.h @@ -1,4 +1,4 @@ -/* $NetBSD: mbuf.h,v 1.24 1997/05/23 19:46:08 thorpej Exp $ */ +/* $NetBSD: mbuf.h,v 1.25 1997/06/06 16:37:41 kleink Exp $ */ /* * Copyright (c) 1996, 1997 Jason R. Thorpe. All rights reserved. @@ -56,7 +56,7 @@ #define MLEN (MSIZE - sizeof(struct m_hdr)) /* normal data len */ #define MHLEN (MLEN - sizeof(struct pkthdr)) /* data len w/pkthdr */ -#define MINCLSIZE (MHLEN + MLEN) /* smallest amount to put in cluster */ +#define MINCLSIZE (MHLEN+MLEN+1) /* smallest amount to put in cluster */ #define M_MAXCOMPRESS (MHLEN / 2) /* max amount to copy for compression */ /*