From owner-freebsd-bugs Mon May 13 06:30:54 1996 Return-Path: owner-bugs Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id GAA20297 for bugs-outgoing; Mon, 13 May 1996 06:30:54 -0700 (PDT) Received: from relay2.smtp.psi.net (relay2.smtp.psi.net [38.8.188.2]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id GAA20291 for ; Mon, 13 May 1996 06:30:52 -0700 (PDT) Received: from tatung by relay2.smtp.psi.net (8.6.12/SMI-5.4-PSI) id JAA05209; Mon, 13 May 1996 09:26:07 -0400 Received: from tatung by tatung (5.x/SMI-SVR4) id AA11005; Mon, 13 May 1996 09:26:53 -0500 Message-Id: <31972068.4DCF@netcon.com> Date: Mon, 13 May 1996 07:43:36 -0400 From: Tony Ardolino Organization: netcon.com X-Mailer: Mozilla 2.0 (Win16; I) Mime-Version: 1.0 To: bugs@freebsd.org Cc: cam@solidsys.com Subject: Freebsd, mbuf cluster size MINCLSIZE Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-bugs@freebsd.org X-Loop: FreeBSD.org Precedence: bulk We have just completed porting our NetCon product to FreeBSD this product includes among other things; a NEW IPX/SPX protocol stack, and a NEW NetWare compatible vfs file system (TFS). Both the protocol stack and file system use the MBUF subsystem. What we don't understand is why is MINCLSIZE being set to 208 bytes when it should be 100 bytes. Is there something wrong here or is that we just don't understatnd what going on. We see the following throughout the FreeBSD code: MGET(m, M_WAIT, MT_DATA); or MGETHDR(m, M_WAIT, MT_DATA); if(len >= MINCLSIZE) MCLGET(m, M_WAIT); in mbuf.h #define MINCLSIZE (MHLEN + MLEN) MINCLSIZE = 208 ((MLEN = MSIZE 128 - m_hdr 20) + (MHLEN = MLEN 108 - pkthdr 8) should MINCLSIZE == 100 not 208, and if this is a bug how come TCP/IP works so well. Our code crashes when we have packets > 100 and < 208. Can anyone shed any light on this please? Tony Ardolino