From owner-freebsd-net Mon Oct 26 09:13:41 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id JAA00149 for freebsd-net-outgoing; Mon, 26 Oct 1998 09:13:41 -0800 (PST) (envelope-from owner-freebsd-net@FreeBSD.ORG) Received: from khavrinen.lcs.mit.edu (khavrinen.lcs.mit.edu [18.24.4.193]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id JAA00144 for ; Mon, 26 Oct 1998 09:13:40 -0800 (PST) (envelope-from wollman@khavrinen.lcs.mit.edu) Received: (from wollman@localhost) by khavrinen.lcs.mit.edu (8.9.1/8.9.1) id MAA19008; Mon, 26 Oct 1998 12:12:55 -0500 (EST) (envelope-from wollman) Date: Mon, 26 Oct 1998 12:12:55 -0500 (EST) From: Garrett Wollman Message-Id: <199810261712.MAA19008@khavrinen.lcs.mit.edu> To: "Louis A. Mamakos" Cc: freebsd-net@FreeBSD.ORG Subject: questions of taste.. mbuf header change In-Reply-To: <199810252219.RAA10102@whizzo.transsys.com> References: <199810252219.RAA10102@whizzo.transsys.com> Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org < said: > - what, if anything, breaks if there are 8 or 10 bytes fewer space in > the first mbuf? There was some discussion a while ago about increasing > MSIZE from 128 to something larger, but this didn't seem to happen. Probably local-domain datagram sockets with long path names. Can't think of anything else. I'm inclined to increase MSIZE to 256 in any case... > - how to minimize header file dependencies by introducing a new data type. > Should I add a > #ifndef _SYS_TIME_H_ > #include > #endif > in sys/mbuf.h? No. What I would do instead is to declare a new structure which is an intentional type pun for `struct timespec'. (You have stumbled into one of the most annoying misfeatures of the C language: there is no way to actually USE an incomplete structure that is even marginally useful; in order to have opaque objects it is necessary to insert a level of indirection which is less than desirable in a low-level context such as this.) -GAWollman -- Garrett A. Wollman | O Siem / We are all family / O Siem / We're all the same wollman@lcs.mit.edu | O Siem / The fires of freedom Opinions not those of| Dance in the burning flame MIT, LCS, CRS, or NSA| - Susan Aglukark and Chad Irschick To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message