-/* $OpenBSD: param.h,v 1.7 1996/12/08 00:20:25 niklas Exp $ */
+/* $OpenBSD: param.h,v 1.8 1996/12/11 11:12:51 deraadt Exp $ */
/* $NetBSD: param.h,v 1.14 1996/10/25 20:48:59 cgd Exp $ */
/*
* of the hardware page size.
*/
#define MSIZE 256 /* size of an mbuf */
-#define MCLBYTES 2048 /* large enough for ether MTU */
#define MCLSHIFT 11
+#define MCLBYTES (1 << MCLSHIFT) /* large enough for ether MTU */
#define MCLOFSET (MCLBYTES - 1)
#ifndef NMBCLUSTERS
#ifdef GATEWAY
-/* $OpenBSD: param.h,v 1.5 1996/09/20 18:18:46 pefo Exp $ */
+/* $OpenBSD: param.h,v 1.6 1996/12/11 11:12:54 deraadt Exp $ */
/*
* Copyright (c) 1988 University of Utah.
* of the hardware page size.
*/
#define MSIZE 128 /* size of an mbuf */
-#define MCLBYTES 2048 /* enough for whole Ethernet packet */
-#define MCLSHIFT 10
+#define MCLSHIFT 11
+#define MCLBYTES (1 << MCLSHIFT) /* enough for whole Ethernet packet */
#define MCLOFSET (MCLBYTES - 1)
#ifndef NMBCLUSTERS
#ifdef GATEWAY
* of the hardware page size.
*/
#define MSIZE 128 /* size of an mbuf */
-#define MCLBYTES 1024
-#define MCLSHIFT 10
+#define MCLSHIFT 11
+#define MCLBYTES (1 << MCLSHIFT)
#define MCLOFSET (MCLBYTES - 1)
#ifndef NMBCLUSTERS
#ifdef GATEWAY
* from: Utah $Hdr: machparam.h 1.11 89/08/14$
*
* @(#)param.h 7.8 (Berkeley) 6/28/91
- * $Id: param.h,v 1.1.1.1 1995/10/18 10:54:21 deraadt Exp $
+ * $Id: param.h,v 1.2 1996/12/11 11:12:57 deraadt Exp $
*/
#ifndef _MACHINE_PARAM_H_
#define _MACHINE_PARAM_H_
* of the hardware page size.
*/
#define MSIZE 128 /* size of an mbuf */
-#define MCLBYTES 1024
-#define MCLSHIFT 10
+#define MCLSHIFT 11
+#define MCLBYTES (1 << MCLSHIFT)
#define MCLOFSET (MCLBYTES - 1)
#ifndef NMBCLUSTERS
#ifdef GATEWAY
* of the hardware page size.
*/
#define MSIZE 128 /* size of an mbuf */
-#define MCLBYTES 2048 /* enough for whole Ethernet packet */
-#define MCLSHIFT 10
+#define MCLSHIFT 11
+#define MCLBYTES (1 << MCLSHIFT) /* enough for whole Ethernet packet */
#define MCLOFSET (MCLBYTES - 1)
#ifndef NMBCLUSTERS
#ifdef GATEWAY
* of the hardware page size.
*/
#define MSIZE 128 /* size of an mbuf */
-#define MCLBYTES 2048 /* enough for whole Ethernet packet */
#define MCLSHIFT 11 /* log2(MCLBYTES) */
+#define MCLBYTES (1 << MCLSHIFT) /* enough for whole Ethernet packet */
#define MCLOFSET (MCLBYTES - 1)
#ifndef NMBCLUSTERS
* of the hardware page size.
*/
#define MSIZE 128 /* size of an mbuf */
-#define MCLBYTES 2048 /* large enough for ether MTU */
#define MCLSHIFT 11
+#define MCLBYTES (1 << MCLSHIFT) /* large enough for ether MTU */
#define MCLOFSET (MCLBYTES - 1)
#ifndef NMBCLUSTERS
#ifdef GATEWAY
#endif /* MSIZE */
#ifndef MCLSHIFT
-#define MCLSHIFT 10 /* convert bytes to m_buf clusters */
+#define MCLSHIFT 11 /* convert bytes to m_buf clusters */
#endif /* MCLSHIFT */
#define MCLBYTES (1 << MCLSHIFT) /* size of an m_buf cluster */
#define MCLOFSET (MCLBYTES - 1) /* offset within an m_buf cluster */