From owner-freebsd-hackers@FreeBSD.ORG Thu Feb 7 20:49:11 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D34A216A419 for ; Thu, 7 Feb 2008 20:49:11 +0000 (UTC) (envelope-from freebsd.dev@gmail.com) Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.181]) by mx1.freebsd.org (Postfix) with ESMTP id 7B04A13C461 for ; Thu, 7 Feb 2008 20:49:11 +0000 (UTC) (envelope-from freebsd.dev@gmail.com) Received: by py-out-1112.google.com with SMTP id u52so5107035pyb.10 for ; Thu, 07 Feb 2008 12:49:10 -0800 (PST) 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:content-transfer-encoding:content-disposition; bh=k9ZOBUkusd1vfxt7v7xuHxrkf/qPaR24UIFm1woGNDE=; b=UDwCshOyENCHSRPQ7Wdic9JsMEJ2nYU3ouFxG4ppHZIMbVJFVTsQ31kLndu9EPd78S9gmBcHTA/5xdAcle7kObM8flVv8wdtF7e2GDvtW81z9Sr72CszYa6z6aMGBNJIviqilL4IXWQaNwfYtkgYdB/gsrdovC/278du8fv9prk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=ViulPDIl9IN3Uh2z6UzlrQvogcVq6SwldKaoJInlPBv7ozpOglxfH+uZcyh/gnWBEOxHS1P+BOXkdKTPUM8Kf3dlhlVwqoCW9BV5hvyv5m/SNTOrEisSjVIfygwUifB6CSWSLNvAPa4ClcAPntZneO05Cw+xczLLjVSgw2hykYg= Received: by 10.141.113.6 with SMTP id q6mr7906391rvm.36.1202415773948; Thu, 07 Feb 2008 12:22:53 -0800 (PST) Received: by 10.140.136.7 with HTTP; Thu, 7 Feb 2008 12:22:53 -0800 (PST) Message-ID: <50cd4e5f0802071222w1222d901o3ce8770b5f5725b4@mail.gmail.com> Date: Thu, 7 Feb 2008 14:22:53 -0600 From: "Biks N" To: freebsd-hackers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: retrive data from mbuf chain X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Feb 2008 20:49:11 -0000 Hi, I am new to FreeBSD kernel programming. Currently I am trying to work on mbuf data manupulation. >From my understanding: data (payload) is stored into one or more mufs which are chained together through m_next pointer. Now, I need to retrive all data in mbuf chain ( mbufs linked by m_next). I am working ip_output() in netinet/ip_output.c Does there exist inbuilt function/macro to retrive all the data in mbuf chain? thanks in advance :)