From owner-freebsd-net@FreeBSD.ORG Thu Oct 2 09:40:35 2008 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 080AF1065689 for ; Thu, 2 Oct 2008 09:40:35 +0000 (UTC) (envelope-from yonyossef.lists@gmail.com) Received: from mail-gx0-f21.google.com (mail-gx0-f21.google.com [209.85.217.21]) by mx1.freebsd.org (Postfix) with ESMTP id A54B18FC40 for ; Thu, 2 Oct 2008 09:40:34 +0000 (UTC) (envelope-from yonyossef.lists@gmail.com) Received: by gxk14 with SMTP id 14so1147492gxk.19 for ; Thu, 02 Oct 2008 02:40:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type; bh=94nJ30lKl26ZCWb0rI7xHVH8XiXZvlPs2sH8ZNCgLvw=; b=gnxc9XTAyd3anjYrsrWCcehStMYNjgXJOxgYxSwPUUot+EB0WDdz/dk/EiYQEKCUJ3 vpYh56sHT/p2hb4LVCynxmjocEJt15UCJFZOr1/+YwltuevBces/L94PVF8Bz3igJCtr P/41+yLPhQhWw0YBLaVKfrVsIiuMBnlbtmSK0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type; b=JIoexTrK8JmZYT1yjMwg12/7i+niyhBSERY9IGUj3DRGUNaHZnZtvgezPpkuGMr2o3 cA5XieD87QaA0Uy2S+Bb+0ZvbQ50aKdsWFhViKW2KT014UrhOf69jpbF8dACzZwwDAyg 2RRrxepElR8cg2X65sDSEYYfZaBCy22g4p/u4= Received: by 10.150.225.10 with SMTP id x10mr6748166ybg.153.1222939000379; Thu, 02 Oct 2008 02:16:40 -0700 (PDT) Received: by 10.151.84.2 with HTTP; Thu, 2 Oct 2008 02:16:40 -0700 (PDT) Message-ID: <20def4870810020216x31f9c0d8yd4776622928c412e@mail.gmail.com> Date: Thu, 2 Oct 2008 12:16:40 +0300 From: "Yony Yossef" To: freebsd-net@freebsd.org, freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: Freeing an mbuf cluster X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Oct 2008 09:40:35 -0000 Hi All, I'm trying to manually build an mbuf chain with clusters in various sizes. I'm doing it using the MGETHDR and MEXTADD macros, it works fine. Now I'm looking for the simplest way to free an mbuf cluster, since I want to free the clusters seperately. This function will be given as a parameter to MEXTADD. Is there a simple command like 'free(buf)' to free an mbuf cluster? Thanks Yony