From owner-cvs-all Wed Dec 1 14:31:44 1999 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id CB1C514A03; Wed, 1 Dec 1999 14:31:40 -0800 (PST) (envelope-from archie@FreeBSD.org) Received: (from archie@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id OAA35086; Wed, 1 Dec 1999 14:31:32 -0800 (PST) (envelope-from archie@FreeBSD.org) Message-Id: <199912012231.OAA35086@freefall.freebsd.org> From: Archie Cobbs Date: Wed, 1 Dec 1999 14:31:32 -0800 (PST) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/kern uipc_mbuf.c src/sys/sys mbuf.h Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk archie 1999/12/01 14:31:32 PST Modified files: sys/kern uipc_mbuf.c sys/sys mbuf.h Log: The functions m_copym() and m_copypacket() return read-only copies, because in the case of mbuf clusters they only increment the reference count rather than actually copying the data. Add comments to this effect, and add a new routine called m_dup() that returns a real, writable copy of an mbuf chain. This is preliminary work required for implementing 'ipfw tee'. Reviewed by: julian Revision Changes Path 1.46 +79 -1 src/sys/kern/uipc_mbuf.c 1.37 +2 -1 src/sys/sys/mbuf.h To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message