From owner-freebsd-hackers@FreeBSD.ORG Sat Mar 15 01:38:59 2014 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id C986F37F for ; Sat, 15 Mar 2014 01:38:59 +0000 (UTC) Received: from felyko.com (felyko.com [IPv6:2607:f2f8:a528::3:1337:ca7]) by mx1.freebsd.org (Postfix) with ESMTP id B46CE8F2 for ; Sat, 15 Mar 2014 01:38:59 +0000 (UTC) Received: from [10.0.1.3] (c-24-6-115-18.hsd1.ca.comcast.net [24.6.115.18]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by felyko.com (Postfix) with ESMTPSA id A12D039841; Fri, 14 Mar 2014 18:38:57 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 7.2 \(1874\)) Subject: Re: mbuf question From: Rui Paulo In-Reply-To: <53230214.7010501@gmail.com> Date: Fri, 14 Mar 2014 18:39:00 -0700 Content-Transfer-Encoding: quoted-printable Message-Id: References: <53230214.7010501@gmail.com> To: Hooman Fazaeli X-Mailer: Apple Mail (2.1874) Cc: FreeBSD Hackers X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 15 Mar 2014 01:38:59 -0000 On 14 Mar 2014, at 06:20, Hooman Fazaeli = wrote: > Hi list, >=20 > Is it safe to use m->m_pktdat area to store some arbitrary data about = packets allocated as mbuf+cluster pair? No, because m_pktdat is really MH_databuf which is part of a union with = MH_ext which is set when you allocate an mbuf cluster. -- Rui Paulo