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 <frueauf@ira.uka.de> with W. R. Stevens'
TCP/IP Illustrated, Vol. 2, at hand.
This commit is contained in:
kleink 1997-06-06 16:37:41 +00:00
parent 21693b3a6f
commit e6f69040f0
1 changed files with 2 additions and 2 deletions

View File

@ -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 */
/*